RTD documentation


Main Page   Class Hierarchy   Compound List   Compound Members  

Crtd_Cfg Class Reference

Dialog configuration data class. More...

#include <rtd_DItem.h>

List of all members.

Public Methods

 Crtd_Cfg (CString szCfgName = _T("Default"))
 Constructor. More...

 Crtd_Cfg (const Crtd_Cfg& other, CString szCfgName = _T(""))
 Constructor. More...

void operator= (const Crtd_Cfg& other)
 Copy operator. More...

void operator= (const Crtd_Cfg* other)
 Copy operator. More...

BOOL operator== (const Crtd_Cfg& other)
 Equals operator. More...

BOOL operator!= (const Crtd_Cfg& other)
 Equals operator. More...

void Serialize (CArchive& ar)
 Serialization method. More...

Crtd_DItemGetDItem (UINT nID)
 Gets Crtd_DItem for a control. More...

CString GetCfgName ()
 Returns the display name of the configuration.

void SetCfgName (const CString& szCfgName)
 Sets the display name of the configuration.

CDItems* GetItems ()
 Returns an array of Crtd_DItems.


Detailed Description

Dialog configuration data class.

Crtd_Cfg class holds an array of Crtd_DItem instances. It is responsible for copying, edition and serialization of the array. Each Crtd_BaseDlg holds a reference to its Crtd_Cfg structure.

See also:
Crtd_BaseDlg
Version:
1.3
Date:
01.01.2000


Constructor & Destructor Documentation

Crtd_Cfg::Crtd_Cfg ( CString szCfgName = _T("Default") )
 

Constructor.

Constructs an instance of the Crtd_Cfg class.

Parameters:
szCfgName   display name for the instance.

Crtd_Cfg::Crtd_Cfg ( const Crtd_Cfg & other,
CString szCfgName = _T("") )
 

Constructor.

Constructs an instance of the Crtd_Cfg class.

Parameters:
other   another instance of the class to copy attributes from.
szCfgName   display name for the instance.


Member Function Documentation

Crtd_DItem * Crtd_Cfg::GetDItem ( UINT nID )
 

Gets Crtd_DItem for a control.

Obtains a pointer to Crtd_DItem for the specified control ID.

Parameters:
nID   resource ID of the control.
Returns:
pointer to Crtd_DItem instance or NULL if not found.

void Crtd_Cfg::Serialize ( CArchive & ar )
 

Serialization method.

Stores or loads contents of a Crtd_DItem elements to an archive. CArchive has to be created and connected to a file before this method can be used.

Parameters:
ar   CArchive instance.

BOOL Crtd_Cfg::operator!= ( const Crtd_Cfg & other ) [inline]
 

Equals operator.

Compares THIS instance to the specified instance of Crtd_Cfg.

Parameters:
other   source Crtd_Cfg instance.
Returns:
true if instances are not equal.

void Crtd_Cfg::operator= ( const Crtd_Cfg * other ) [inline]
 

Copy operator.

Copies values from the specified Crtd_Cfg instance pointed to by other.

Parameters:
other   pointer to source Crtd_Cfg instance.

void Crtd_Cfg::operator= ( const Crtd_Cfg & other )
 

Copy operator.

Copies values from the specified Crtd_Cfg instance.

Parameters:
other   source Crtd_Cfg instance.

BOOL Crtd_Cfg::operator== ( const Crtd_Cfg & other )
 

Equals operator.

Compares THIS instance to the specified instance of Crtd_Cfg.

Parameters:
other   source Crtd_Cfg instance.
Returns:
true if instances are equal.


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

Last reviewed on Saturday February 07, 2004. Latest version is available at hamradio.idealog.net