Unicorn XML Toolkit
Version 1.00.00

Namespace Som
Class CAttributeDef

class CAttributeDef: public CInterface {
public:
    CAttributeDef();
    ~CAttributeDef();
public:
    void Create(
        const CString &strName,
        int nType,
        CInterfaceDef *pTypeInterface,
        bool bReadonly);
    CString GetName();
    int GetType();
    CInterfaceDef *GetTypeInterface();
    bool IsReadonly();
    };

The definition of an attribute in a SOM repository.

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
See Also:
CInterfaceDef
Constructor/Destructor Summary
CAttributeDef ();
����������Constructs the attribute definition.
~CAttributeDef ();
����������Destroys the attribute definition.

Function Summary
void Create (const CString &strName, int nType, CInterfaceDef *pTypeInterface, bool bReadonly);
����������Creates the attribute definition.
CString GetName ();
����������Returns a name of the attribute.
int GetType ();
����������Returns a type code of the attribute.
CInterfaceDef�* GetTypeInterface ();
����������Returns an interface corresponding to the attribute type.
bool IsReadonly ();
����������Returns a read-only indicator of the attribute.

Constructor/Destructor Detail

CAttributeDef

CAttributeDef();

Constructs the attribute definition.

~CAttributeDef

~CAttributeDef();

Destroys the attribute definition.

Function Detail

Create

void Create(
    const CString &strName,
    int nType,
    CInterfaceDef *pTypeInterface,
    bool bReadonly);

Creates the attribute definition.

Parameters:
strName - the name of the attribute
nType - the type code of the attribute
pTypeInterface - if the attribute is of type interface ( nType is typeInterface ), points to the appropriate interface definition; otherwise NULL
bReadonly - true if the attribute is read-only; false otherwise

GetName

CString GetName();

Returns a name of the attribute.

Returns:
the name of the attribute

GetType

int GetType();

Returns a type code of the attribute.

Returns:
the type code of the attribute

GetTypeInterface

CInterfaceDef *GetTypeInterface();

Returns an interface corresponding to the attribute type.

Returns:
the interface corresponding to the attribute type; NULL if the attribute has type code other than typeInterface

IsReadonly

bool IsReadonly();

Returns a read-only indicator of the attribute.

Returns:
true if the attribute is read-only; false otherwise

Unicorn XML Toolkit
Version 1.00.00


This document was created using Unicorn DOC++.

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