Design Pattern Examples
Overview of object-oriented design patterns
Mediator_User.h
Go to the documentation of this file.
1
5
6
#pragma once
7
#ifndef __MEDIATOR_USER_H__
8
#define __MEDIATOR_USER_H__
9
13
typedef
struct
14
{
18
const
char
*
Name
;
19
}
User
;
20
21
//-----------------------------------------------------------------------------
22
29
User
*
User_Create
(
const
char
* userName);
30
37
void
User_Destroy
(
User
* user);
38
39
40
#endif
// __MEDIATOR_USER_H__
41
User_Destroy
void User_Destroy(User *user)
Destroy the given User object, releasing any associated memory resources. After this function returns...
Definition:
Mediator_User.c:41
User_Create
User * User_Create(const char *userName)
Create a User object with the specified name.
Definition:
Mediator_User.c:17
User
Represents a user with a name.
Definition:
Mediator_User.h:14
User::Name
const char * Name
The name of the user.
Definition:
Mediator_User.h:18
c
Mediator_User.h
Generated on Tue Aug 29 2023 19:47:44 for Design Pattern Examples by
1.9.6