CrystalSpace

Public API Reference

CS::Utility::iModifiableConstraintEnum Struct Reference

An enum constraint defines a list of values that a parameter can take. More...

#include <iutil/modifiable.h>

Inheritance diagram for CS::Utility::iModifiableConstraintEnum:

List of all members.

Public Member Functions

virtual const char * GetLabel (size_t index) const =0
 Get the textual description of the value of the given index.
virtual const csVariantGetValue (size_t index) const =0
 Get the value of the given index.
virtual size_t GetValueCount () const =0
 Get the count of different values that are allowed.

Detailed Description

An enum constraint defines a list of values that a parameter can take.

No other values are allowed for this parameter.

See also:
CS::Utility::ModifiableConstraintEnum for a default implementation

Definition at line 377 of file modifiable.h.


Member Function Documentation

virtual const char* CS::Utility::iModifiableConstraintEnum::GetLabel ( size_t  index  )  const [pure virtual]

Get the textual description of the value of the given index.

Note:
You might want to process this string by the translator.
virtual const csVariant& CS::Utility::iModifiableConstraintEnum::GetValue ( size_t  index  )  const [pure virtual]

Get the value of the given index.

virtual size_t CS::Utility::iModifiableConstraintEnum::GetValueCount (  )  const [pure virtual]

Get the count of different values that are allowed.


The documentation for this struct was generated from the following file:

Generated for Crystal Space 2.1 by doxygen 1.6.1