PixelLightAPI  .
Public Member Functions | Protected Attributes
PLCore::VarDesc Class Reference

Variable descriptor. More...

#include <VarDesc.h>

Inheritance diagram for PLCore::VarDesc:
Inheritance graph
[legend]

List of all members.

Public Member Functions

PLCORE_API VarDesc (int nType, const String &sType, const String &sName, const String &sDescription, const String &sAnnotation)
 Constructor.
virtual PLCORE_API ~VarDesc ()
 Destructor.
PLCORE_API void Dummy ()
 Initialize instance.
int GetTypeID () const
 Get type ID.
String GetTypeName () const
 Get type name.
virtual PLCORE_API String GetDefault () const
 Get default value as string.
virtual PLCORE_API DynVarGetAttribute (const Object &cObject) const
 Get attribute.

Protected Attributes

int m_nType
String m_sType

Detailed Description

Variable descriptor.

Remarks:
This class contains a descriptor for a variable and consists of information belonging to a specific variable, such as it's name, type and description.

Constructor & Destructor Documentation

PLCORE_API PLCore::VarDesc::VarDesc ( int  nType,
const String sType,
const String sName,
const String sDescription,
const String sAnnotation 
)

Constructor.

Parameters:
[in]nTypeType ID
[in]sTypeType name
[in]sNameVar name
[in]sDescriptionVar description
[in]sAnnotationVar annotation
virtual PLCORE_API PLCore::VarDesc::~VarDesc ( ) [virtual]

Destructor.


Member Function Documentation

PLCORE_API void PLCore::VarDesc::Dummy ( )

Initialize instance.

Remarks:
This method is just here to ensure, that the compiler will actually create static instances
int PLCore::VarDesc::GetTypeID ( ) const [inline]

Get type ID.

Returns:
Type ID

Get type name.

Returns:
Type name
virtual PLCORE_API String PLCore::VarDesc::GetDefault ( ) const [virtual]

Get default value as string.

Returns:
Default value as string
virtual PLCORE_API DynVar* PLCore::VarDesc::GetAttribute ( const Object cObject) const [virtual]

Get attribute.

Parameters:
[in]cObjectObject to return the attribute pointer from
Returns:
Pointer to var (can be a null pointer, do not destroy the returned instance)

Member Data Documentation

int PLCore::VarDesc::m_nType [protected]

Type ID

Type name


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


PixelLight PixelLight 0.9.11-R1
Copyright (C) 2002-2012 by The PixelLight Team
Last modified Thu Feb 23 2012 14:09:24
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported