GL Studio API
Public Member Functions | List of all members
DistiAttributeUCharOrBool Class Reference

#include <gls_metadata_attributes.h>

Inheritance diagram for DistiAttributeUCharOrBool:
DistiAttribute< unsigned char > DistiAttributeBase WeakReferenceableMixin WeakReferenceable

Public Member Functions

virtual DistiAttributeBaseoperator= (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 AttributeNameName () const
 
AttributeNameName ()
 
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 >
DistiAttributeBaseoperator<< (const valType &val)
 
template<class valType >
DistiAttributeBaseoperator>> (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
 

Detailed Description

Special case for transitioning from a bool to an int Reads True or False, or integers. Writes only integers.

Member Function Documentation

virtual DistiAttributeBase& operator= ( const DistiAttributeBase oldClass)
virtual

This will perform the copy using Value() and Value(val)

Reimplemented from DistiAttribute< unsigned char >.

virtual std::istream& ReadValue ( std::istream &  instr)
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 long ValueInt ( )
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 void ValueInt ( long  val)
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 std::ostream& WriteValue ( std::ostream &  outstr)
virtual

Writes the data to the stream

Reimplemented from DistiAttribute< unsigned char >.


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