GL Studio API
|
#include <gls_metadata_attributes.h>
Public Member Functions | |
virtual DistiAttributeBase & | operator= (const DistiAttributeBase &oldClass) |
virtual long | ValueInt () |
virtual void | ValueInt (long val) |
virtual std::ostream & | WriteValue (std::ostream &outstr) |
virtual std::istream & | ReadValue (std::istream &instr) |
Public Member Functions inherited from DistiAttribute< unsigned char > | |
DistiAttribute (CallbackMethodCallerBase *callback, const AttributeName &name, unsigned char *attribPtr) | |
DistiAttribute (CallbackMethodCallerBase *callback, const AttributeName &name, const unsigned char &initialValue) | |
virtual bool | Copyable () const |
virtual double | ValueFloat () |
virtual void | ValueFloat (double val) |
virtual unsigned char | Value () |
virtual void | Value (const unsigned char &val) |
virtual bool | operator== (const DistiAttributeBase &rArg) |
virtual | ~DistiAttribute () |
Public Member Functions inherited from DistiAttributeBase | |
DistiAttributeBase (CallbackMethodCallerBase *callback, const AttributeName &name, bool localStorage) | |
const AttributeName & | Name () const |
AttributeName & | Name () |
bool | LocalStorage () const |
virtual bool | OkToWrite () const |
virtual bool | ValueChanged () |
virtual void | ResetValueChanged () |
virtual std::string | ValueString () |
virtual void | ValueString (const std::string &s) |
virtual void | CallCallback () |
template<class valType > | |
DistiAttributeBase & | operator<< (const valType &val) |
template<class valType > | |
DistiAttributeBase & | operator>> (valType &val) |
virtual CallbackID | RegisterObserver (AttributeObserver *observer) |
virtual void | UnregisterObserver (CallbackID id) |
virtual void | NotifyObservers () |
Public Member Functions inherited from WeakReferenceableMixin | |
void | AddWeakReference (WeakReference *weakRef) |
void | NotifyWeakReferenceDestroyed (WeakReference *ref) |
Additional Inherited Members | |
Public Types inherited from DistiAttributeBase | |
typedef unsigned int | CallbackID |
Type for unique identifiers. | |
Public Attributes inherited from DistiAttributeBase | |
AttributeName | _name |
CallbackMethodCallerBase * | _callback |
bool | _localStorage |
Protected Member Functions inherited from WeakReferenceableMixin | |
WeakReferenceableMixin (void) | |
virtual | ~WeakReferenceableMixin () |
Protected Attributes inherited from DistiAttribute< unsigned char > | |
unsigned char * | _attribPtr |
int | _precision |
Protected Attributes inherited from WeakReferenceableMixin | |
DynamicArray< WeakReference * > * | _weakRefs |
Special case for transitioning from a bool to an int Reads True or False, or integers. Writes only integers.
|
virtual |
This will perform the copy using Value() and Value(val)
Reimplemented from DistiAttribute< unsigned char >.
|
virtual |
Reads the data from the stream The ReadValue call shall consume only what it needs. It is the responsibility of the calling function to read to the end of line, or to clean up from a bad read. The calling function will also ensure that the data starts as the next byte in the stream.
Reimplemented from DistiAttribute< unsigned char >.
|
virtual |
Allows for faster access to integer types than the more generic GetValueSimple. However, it is only faster if it is overridden. It is overridden here to allow for template specialization
Reimplemented from DistiAttribute< unsigned char >.
|
virtual |
Allows for faster access to integer types than the more generic SetValueSimple. However, it is only faster if it is overridden. It is overridden here to allow for template specialization
Reimplemented from DistiAttribute< unsigned char >.
|
virtual |
Writes the data to the stream
Reimplemented from DistiAttribute< unsigned char >.