List of ancestors:
Desc. & Idea | Warnings | Methods | Attributes | Operators | Specials |
|
![]() |
![]() |
![]() |
![]() |
![]() |
Methods beginning with Get or Set (get/set) are usually intended to access Attributes of same name (exceptions will be marked). |
This class represents a single parameter from the parametric file.
All output strings (char *) should be used as constants. Don't change them
from outside the object. On the other hand all incoming strings are copied into the
object. So the source strings can change or be deleted.
Params inserted into TGroup or TParamFile
are really inserted not copied.
Public:
![]() ![]() |
BOOL AsBool(void) |
![]() ![]() |
char AsChar(void) |
![]() ![]() |
TFit AsFit(void) |
![]() ![]() |
double AsFloat(void) |
![]() ![]() |
int AsInt(void) |
![]() ![]() |
TProb AsProb(void) |
![]() ![]() |
char * AsString(void) |
void Delete() | |
char * GetCaption(void) | |
TChange GetChange(void) | |
TGroup * GetGrp(void) | |
char * GetName(void) | |
TAParam * GetNext(void) | |
TParamFile *GetParent() | |
TAParam * GetPrior() | |
TStrList *GetRemarks() | |
![]() |
uint GetSerSize(BOOL subclass=FALSE) |
TPFileID *GetSourceFile() | |
TTypes GetType(void) | |
void PutAfter(TAParam *Who) | |
void PutBefore(TAParam *Who) | |
![]() |
void SetCaption(char *aCaption) |
![]() |
void SetChange(TChange aChange) |
TGroup * SetGrp(TGroup *aGrp) | |
![]() |
void SetName(char *aName) |
![]() |
uint Serialize(BYTE **rawbytes,BOOL subclass=FALSE) |
void SetSourceFile(TPFileID *val) | |
![]() |
void SetType(TTypes aType) |
![]() ![]() |
void SetValue(BOOL) |
![]() ![]() |
void SetValue(char) |
![]() ![]() |
void SetValue(char *) |
![]() ![]() |
void SetValue(double) |
![]() ![]() |
void SetValue(int) |
![]() ![]() |
TAParam(char *aName=NULL, TPFileID *aSourceFile=NULL) |
![]() |
TAParam(TAParam &picture) |
void Unchain() | |
![]() |
~TAParam(void) |
Protected:
![]() |
TAParam(BYTE** raw,uint length,BOOL subclass,char *GroupName,TParamFile *Into) |
Private:
The parameters value is returned in a format specified by type. i.g some conversions can be made. Use the string value as a pattern, don't change it directly.
The parameters value in a required format.
Simply just calls the destructor.
Returns the caption of the parameter. If it is NULL string Name is returned instead.
Returns the TParamFile structure which the parameter belongs to.
Puts the parameter behind the specified one (if it is not NULL). Parent can
change (GetParent).
Who...the parameter in the chain.
Puts the parameter before the specified one (if it is not NULL). Parent can
change (GetParent). Also TParamFile.FirstParam
can be affected.
Who...the parameter in the chain.
Quite a complex function. Among others parent can be changed (GetParent).
If there is no FileID of the same filename as in the current parent TParamFile the old one is copied.
aGrp...the new group
The group the parameter belongs to now.
TGroup.InjectParam, TGroup.InsertParam, TGroup.EjectParam
Set the value of the parameter. The type is converted into the type of parameter.
the new value
Quite a complex function. Among others parent can be changed (GetParent).
If a Group of the same name as the parental is does not exist in new TParamFile it is created (empty).
val...the new FileID.
Constructor that creates a new parameter. The parameter doesn't belong to any group. And its type must be set.
aName...name of the new parameter
aSourceFile...file the parameter belongs to
Copy constructor. Warning: the new parameter is in no group nor chain even the SourceFile is NULL.
picture...parameter that should be copied
Deserialization constructor. Don't use separately.
Takes out the parameter from the chain. The TParamFile.FristParam is maintained.
Destructor. Frees also the string values.
Public:
Protected:
![]() |
char * Caption |
![]() |
TChange Change |
![]() |
TMultiType Data |
TGroup * Grp | |
![]() |
char * Name |
TAParam *Next | |
TAParam *Prior | |
TStrList *Remarks | |
![]() |
TPFileID *SourceFile |
char *strbuf | |
![]() |
TTypes Type |
Private:
Caption of the parameter that should be used by the parameter setting utility. If it is NULL (The GetCaption function returns a same pointer as function GetName) the setting utility should not show this parameter.
The changeability status of the parameter.
A union type attribute, that contains the value of the parameter.
The parent group.
Name of the parameter.
Next parameter in the structure chain.
Prior parameter in the structure chain.
Remarks connected with the parameter.
The FileID of the file the parameter was loaded from. (or which the parameter was added into.).
Points to a buffer for values converted to string from other types.
Public:
Protected:
Private:
Use the string values as patterns don't change them directly.
Conversions:
BOOL->string "FALSE" or
"TRUE"
BOOL->ordinal 0 or 1
BOOL->char 'T' (macro
TRUECHAR) or 'F' (macro FALSECHAR)
string->BOOL TRUE if the string
is "TRUE" otherwise FALSE
char->BOOL 'T' (TRUECHAR)
to TRUE otherwise FALSE
Other conversions are obvious.