Clarisse 4.0 SP9 SDK  4.0.0.0.9
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Friends | List of all members
OfReferenceOverrideSet Class Reference
Inheritance diagram for OfReferenceOverrideSet:
CoreBaseObject CoreBaseType

Public Member Functions

unsigned int get_overridden_attribute_count () const
 Return the number of overridden attributes.
 
unsigned int get_overrides_count () const
 Return the number of overriddes.
 
void clear_overrides ()
 Removing all overrides on the attributes.
 
void clear_overrides (const CoreString &attr_path)
 Remove the overrides on the specified attribute.
 
void clear_overrides (const CoreBasicArray< CoreString > &attr_paths)
 Remove the overrides on the specified attributes.
 
void cleanup_overrides ()
 Removing all stored overrides on the attributes.
 
void cleanup_overrides (const CoreString &attr_path)
 Remove stored overrides on the specified attribute.
 
void cleanup_overrides (const CoreBasicArray< CoreString > &attr_paths)
 Remove stored overrides on the specified attributes.
 
bool is_attribute_overridden (const OfAttr &attr) const
 Returns true if specified attribute is overridden.
 
void get_overridden_attributes (CoreVector< OfAttr * > &attrs) const
 Returns the overridden attributes.
 
void get_overridden_attributes (CoreVector< OfAttr * > &attrs, const OfObject &object) const
 Returns the overridden attributes of the specified object if any.
 
ParserEntryserialize () const
 Returns a serialization of this override set.
 
void deserialize (const ParserEntry &serial)
 Set attribute overrides from the given seialization.
 
- Public Member Functions inherited from CoreBaseObject
bool is_kindof (const CoreBaseObject &object) const
 
virtual size_t get_memory_size () const
 
CoreString get_class_info_name () const
 
CoreString get_class_interface () const
 
const unsigned long & get_class_info_id () const
 
bool is_kindof (const CoreClassInfo &cinfo) const
 
virtual const CoreClassInfoget_class_info () const
 
bool operator== (const CoreBaseObject &obj) const
 
template<class T >
T * cast ()
 
template<class T >
const T * cast () const
 
- Public Member Functions inherited from CoreBaseType
bool is_kindof (const CoreClassInfo &cinfo) const
 
bool operator== (const CoreBaseType &obj) const
 

Friends

class OfOverridesContextEngine
 

Additional Inherited Members

- Static Public Member Functions inherited from CoreBaseObject
static const CoreClassInfoclass_info ()
 
static bool ___class_destructor__ (void *instance, const bool &is_array)
 
template<class T >
static T * cast (CoreBaseObject *object)
 
template<class T >
static const T * cast (const CoreBaseObject *object)
 

Member Function Documentation

void OfReferenceOverrideSet::cleanup_overrides ( const CoreString attr_path)

Remove stored overrides on the specified attribute.

Parameters
[in]attr_pathEither the name of the attribute or the relative path to the attribute ("context/object.attribute") from the reference context.
Note
If an attribute name is specified, all stored overrides matching the attribute name will be removed.
void OfReferenceOverrideSet::cleanup_overrides ( const CoreBasicArray< CoreString > &  attr_paths)

Remove stored overrides on the specified attributes.

Parameters
[in]attr_pathsEither attribute names or relative paths to the attributes ("context/object.attribute") from the reference context.
Note
Attribute names and attribute paths can be mixed in the same given array.
If attribute names are specified, all stored overrides matching the attribute names will be removed.
void OfReferenceOverrideSet::clear_overrides ( )

Removing all overrides on the attributes.

Note
Overriden attributes are reset to their initial values.
void OfReferenceOverrideSet::clear_overrides ( const CoreString attr_path)

Remove the overrides on the specified attribute.

Note
Overriden attributes are reset to their initial values.
void OfReferenceOverrideSet::clear_overrides ( const CoreBasicArray< CoreString > &  attr_paths)

Remove the overrides on the specified attributes.

Note
Overriden attributes are reset to their initial values.
void OfReferenceOverrideSet::deserialize ( const ParserEntry serial)

Set attribute overrides from the given seialization.

Parameters
[in]serial
See Also
serialize
void OfReferenceOverrideSet::get_overridden_attributes ( CoreVector< OfAttr * > &  attrs) const

Returns the overridden attributes.

Parameters
[out]attrsThe overridden attributes.
Note
The given vector is not cleared prior to adding the overridden attributes.
void OfReferenceOverrideSet::get_overridden_attributes ( CoreVector< OfAttr * > &  attrs,
const OfObject object 
) const

Returns the overridden attributes of the specified object if any.

Parameters
[out]attrsThe overridden attributes.
[in]objectThe object holding the overridden attibutes if any.
Note
The given vector is not cleared prior to adding the overridden attributes.
ParserEntry * OfReferenceOverrideSet::serialize ( ) const

Returns a serialization of this override set.

See Also
deserialize