IDENTIFIER Class Reference

Identifier container used to reference specific persistent object instance. More...

#include <mi32/identifier.h>

List of all members.

Public Member Functions

ERRVALUE Assign (const UINT8 *codestr)
ERRVALUE Assign (const char *codestr)
ERRVALUE CreateFromXML (const XMLNODE *xmlnode)
CODESPACE GetCodespace () const
MISTRING GetFullStr () const
INT32 GetNum () const
const STRUTF8GetStr () const
 IDENTIFIER (const char *codestr)
 IDENTIFIER (CODESPACE codespace, const char *codestr)
 IDENTIFIER (CODESPACE codespace, INT32 codenum)
 IDENTIFIER ()
IDENTIFIERoperator= (const char *codestr)
void Set (CODESPACE codespace, const char *code)
void Set (CODESPACE codespace, INT32 num)
 ~IDENTIFIER ()


Detailed Description

Identifier container used to reference specific persistent object instance.

Definition at line 78 of file identifier.h.


Constructor & Destructor Documentation

IDENTIFIER::IDENTIFIER  ) 
 

Default constructor.

IDENTIFIER::IDENTIFIER CODESPACE  codespace,
INT32  codenum
 

Construct using numeric code.

IDENTIFIER::IDENTIFIER CODESPACE  codespace,
const char *  codestr
 

Construct using string code in specified codespace.

If string contains a single integer value it will be converted to a number.

IDENTIFIER::IDENTIFIER const char *  codestr  ) 
 

Construct using string code.

If string contains a single integer value it will be converted to a number.

IDENTIFIER::~IDENTIFIER  ) 
 

Destructor.


Member Function Documentation

ERRVALUE IDENTIFIER::Assign const UINT8 codestr  ) 
 

Assign from string code.

If string contains a single integer value it will be converted to a number.

Parameters:
codestr  Code string in form "codespacename:code", UTF8 encoding

ERRVALUE IDENTIFIER::Assign const char *  codestr  ) 
 

Assign from string code.

If string contains a single integer value it will be converted to a number.

Parameters:
codestr  Code string in form "codespacename:code", Latin1 encoding

ERRVALUE IDENTIFIER::CreateFromXML const XMLNODE xmlnode  ) 
 

Create identifier from XML node.

Node must be in the form: <nodename>codespacename:code</nodename> The nodename itself is not relevent. If the codespace is not specified the CODESPACE_MicroImages will be used.

CODESPACE IDENTIFIER::GetCodespace  )  const
 

Get codespace enumeration.

MISTRING IDENTIFIER::GetFullStr  )  const
 

Get full identifier string in form "codespace:id".

INT32 IDENTIFIER::GetNum  )  const
 

Get code number.

Returns:
Code number, 0 if not numeric.

const STRUTF8& IDENTIFIER::GetStr  )  const
 

Get code string.

Returns:
Code string

IDENTIFIER& IDENTIFIER::operator= const char *  codestr  ) 
 

Assign from string code.

If string contains a single integer value it will be converted to a number.

Parameters:
codestr  Code string in form "codespacename:code", Latin1 encoding

void IDENTIFIER::Set CODESPACE  codespace,
const char *  code
 

Set codespace and string code.

void IDENTIFIER::Set CODESPACE  codespace,
INT32  num
 

Set codespace and numeric code.


The documentation for this class was generated from the following file:
Generated on Tue Dec 14 13:19:57 2004 for TNTsdk by  doxygen 1.3.8-20040913