A chararcter pointer to the data.
const char *data() const
same as c_str, but the data method isn’t guaranteed to return nul-terminated data in the other reflect string classes.
const char *data() const
a chararcter pointer to the data.
const char *data() const
A chararcter pointer to the data.
const char *data() const
const char *data()
check if this path result is an existing map data property, requires IsMapData() or IsArrayData() to be true.
bool DataExists() const
Properties represent a single data element.
class ReflectExport( reflect ) DataProperty : public Property
The type of data represented by this property.
virtual Type *DataType() const = 0
template<typename T> void DecRef( T * object ) const
Checks if this class represents a subclass of another.
bool DerivesType( const Type * other ) const
Checks if this class represents a subclass of another.
template<typename T> bool Derives() const
Reads a bool from the stream.
virtual bool Deserialize( bool & ) = 0
Reads a floating point number.
virtual bool Deserialize( double & ) = 0
Reads a Dynamic *, using a category.
virtual bool Deserialize( Dynamic *& object ) = 0
Reads an integral number.
virtual bool Deserialize( long & ) = 0
Deserializes a block of data.
virtual bool DeserializeData( void * data, unsigned nbytes ) = 0
virtual bool DeserializeEnum( int & value, const EnumType * clazz ) = 0
virtual void DeserializePointer( Dynamic *& out, Reflector & reflector ) const
void DeserializeProperties( Persistent * , Reflector & ) const
Writes into the object using the Properties’ method.
virtual bool DeserializeProperty( void * object, const Property * prop ) = 0
Defines the interface for deserialization.
class ReflectExport( reflect ) Deserializer
virtual ~Deserializer()
The deserializer this Reflector is managing, or NULL if it is Serializing.
Deserializer *mDeserializer
void ( ObjectType::*mDeserializer )(Reflector &)
Deserializes text in chunks.
virtual bool DeserializeTextChunk( char * text, unsigned & max_bytes, bool & complete ) = 0
true when this reflector represents a Deserializer
bool Deserializing() const
A pointer to a Persistent constructed with this Class.
void Destruct( Persistent * ) const
Destructs an instance of this type.
void *Destruct( void * ) const
An implemetation of ArrayProperty using a pointer-to-member to access the array.
template<typename ObjectType, typename MemberType> class DirectArrayProperty : public ArrayProperty
An implemetation of a DataProperty using a pointer-to-member to access the data.
template<typename ObjectType, typename MemberType> class DirectDataProperty : public DataProperty
An implemetation of MapProperty using a pointer-to-member to access the map.
template<typename ObjectType, typename MemberType> class DirectMapProperty : public MapProperty
An implemetation of ArrayProperty using a pointer-to-member to access the vector.
template<typename ObjectType, typename MemberType> class DirectVectorProperty : public ArrayProperty
Convert type and pointer to most derived form (when pointing to some kind of Dynamic).
Variant &Downcast()
This class defines the core interface for all runtime type identification (RTTI) in reflect.
class ReflectExport( reflect ) Dynamic
Declared protected because there’s no good reason to make a plain Dynamic.
Dynamic()
Declare virtual to allow correct deletion of castable.
virtual ~Dynamic()
class ReflectExport( reflect ) DynamicPointerType : public Type
The Type object representing pointers to this type.
mutable DynamicPointerType mDynamicPointerType
bool empty() const
true if the string is not set, or is the empty string.
bool empty() const
the const_iterator at the end of the string.
const_iterator end() const
Deserializes an ending tag in the stream.
virtual bool End( SerializationTag & ) = 0
Ends a group started by the tag with Begin.
virtual bool End( const SerializationTag & ) = 0
Writes a serialization end tag, see Begin.
bool End( const SerializationTag & )
class ReflectExport( reflect ) EnumType : public Type
EnumType( void (*init_cb)() = 0 )
template<typename T> class EnumType::DescriptionHelper : public Type::DescriptionHelper<T>
Assigns the result of Eval into the variant result.
bool Eval( string:: Fragment script, Variant & result ) const
bool Eval( string:: Fragment script ) const
template<typename T> bool Eval( string:: Fragment script, T & result ) const
invokes Run
int Execute( int argc, char * argv[] )
int Execute( int argc = 0, char * argv[] = 0 )