Unicorn XML Toolkit
Version 1.00.00

Namespace Som
Class CConstantDef

class CConstantDef: public CInterface {
public:
    CConstantDef();
    ~CConstantDef();
public:
    void Create(
        const CString &strName,
        int nType,
        const CValue &value);
    CString GetName();
    int GetType();
    CValue *GetValue();
    };

The definition of a constant in a SOM repository.

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
See Also:
CValue
Constructor/Destructor Summary
CConstantDef ();
����������Constructs the constant definition.
~CConstantDef ();
����������Destroys the constant definition.

Function Summary
void Create (const CString &strName, int nType, const CValue &value);
����������Creates a constant definition.
CString GetName ();
����������Returns a name of the constant.
int GetType ();
����������Returns a type code of the constant.
CValue�* GetValue ();
����������Returns a value of the constant.

Constructor/Destructor Detail

CConstantDef

CConstantDef();

Constructs the constant definition.

~CConstantDef

~CConstantDef();

Destroys the constant definition.

Function Detail

Create

void Create(
    const CString &strName,
    int nType,
    const CValue &value);

Creates a constant definition.

Parameters:
strName - the name of the constant
nType - the type code of the constant
value - the value of the constant

GetName

CString GetName();

Returns a name of the constant.

Returns:
the name of the constant

GetType

int GetType();

Returns a type code of the constant.

Returns:
the type code of the constant

GetValue

CValue *GetValue();

Returns a value of the constant.

Returns:
the value of the constant

Unicorn XML Toolkit
Version 1.00.00


This document was created using Unicorn DOC++.

Copyright 1999-2001 Unicorn Enterprises SA.
All Rights Reserved.