GME  13
Public Member Functions | Protected Attributes
CDynMenu Class Reference

#include <DynMenu.h>

List of all members.

Public Member Functions

 CDynMenu (int iden, TCHAR *nm)
 ~CDynMenu ()
void SetName (CString nm)
void SetID (int i)
CMenu & GetMenu ()
int GetMinID () const
int GetMaxID () const
bool IsEmpty () const
int GetCount () const
void AddItem (int id, CString &&roleName, CString &&displayName, CString &&helpMsg)
CDynMenuItemFindItem (int id)
void Sort ()

Protected Attributes

int id
int minID
int maxID
CString name
std::vector< std::unique_ptr
< CDynMenuItem > > 
items
CMenu menu

Detailed Description

Definition at line 18 of file DynMenu.h.


Constructor & Destructor Documentation

CDynMenu::CDynMenu ( int  iden,
TCHAR *  nm 
)

Definition at line 7 of file DynMenu.cpp.

Definition at line 13 of file DynMenu.cpp.


Member Function Documentation

void CDynMenu::AddItem ( int  id,
CString &&  roleName,
CString &&  displayName,
CString &&  helpMsg 
)

Definition at line 17 of file DynMenu.cpp.

Definition at line 38 of file DynMenu.cpp.

int CDynMenu::GetCount ( ) const [inline]

Definition at line 35 of file DynMenu.h.

int CDynMenu::GetMaxID ( ) const [inline]

Definition at line 33 of file DynMenu.h.

CMenu& CDynMenu::GetMenu ( ) [inline]

Definition at line 31 of file DynMenu.h.

int CDynMenu::GetMinID ( ) const [inline]

Definition at line 32 of file DynMenu.h.

bool CDynMenu::IsEmpty ( void  ) const [inline]

Definition at line 34 of file DynMenu.h.

void CDynMenu::SetID ( int  i) [inline]

Definition at line 30 of file DynMenu.h.

void CDynMenu::SetName ( CString  nm) [inline]

Definition at line 29 of file DynMenu.h.

void CDynMenu::Sort ( )

Definition at line 26 of file DynMenu.cpp.


Member Data Documentation

int CDynMenu::id [protected]

Definition at line 23 of file DynMenu.h.

std::vector<std::unique_ptr<CDynMenuItem> > CDynMenu::items [protected]

Definition at line 26 of file DynMenu.h.

int CDynMenu::maxID [protected]

Definition at line 24 of file DynMenu.h.

CMenu CDynMenu::menu [protected]

Definition at line 27 of file DynMenu.h.

int CDynMenu::minID [protected]

Definition at line 24 of file DynMenu.h.

CString CDynMenu::name [protected]

Definition at line 25 of file DynMenu.h.


The documentation for this class was generated from the following files: