MSCustAttribDef Class Reference

#include <mxsCustomAttributes.h>

+ Inheritance diagram for MSCustAttribDef:

Public Types

enum  version_handling_behavior { never_update, always_update, update_when_load_version_greater_than_current_version, update_when_load_version_greater_than_or_equal_to_current_version }
 

Public Member Functions

ScripterExport MSCustAttribDef (Class_ID &attrib_id)
 
ScripterExport ~MSCustAttribDef ()
 
ScripterExport void init (int local_count, Value **inits, HashTable *local_scope, HashTable *handlers, Array *pblock_defs, Array *iremap_param_names, Array *rollouts, CharStream *source)
 
BOOL is_kind_of (ValueMetaClass *c)
 
void collect ()
 
void gc_trace ()
 
void sprin1 (CharStream *s)
 
bool is_custAttribDef ()
 
ScripterExport MSCustAttribDefunique_clone ()
 
Valueapply (Value **arg_list, int count, CallContext *cc=NULL)
 
RefTargetHandle Create (BOOL loading)
 
Valueget_property (Value **arg_list, int count)
 
Valueset_property (Value **arg_list, int count)
 
 def_property (name)
 

Static Public Member Functions

static MSCustAttribDefintern (Class_ID &attrib_id)
 
static ScripterExport MSCustAttribDeffind (Class_ID &attrib_id)
 
static IOResult save_custattrib_defs (ISave *isave)
 
static IOResult load_custattrib_defs (ILoad *iload)
 

Public Attributes

ValuedefData
 
MSTR source
 

Static Public Attributes

static ScripterExport version_handling_behavior sceneLoadVersionHandling
 
static ScripterExport version_handling_behavior sceneMergeVersionHandling
 

Friends

class MSCustAttrib
 
ScripterExport bool HaveScriptedCustAttribDefs ()
 
Valueca_getSceneDefs_cf (Value **arg_list, int count)
 
Valueca_deleteDef_cf (Value **arg_list, int count)
 

Member Enumeration Documentation

Enumerator
never_update 
always_update 
update_when_load_version_greater_than_current_version 
update_when_load_version_greater_than_or_equal_to_current_version 
48  {
49  never_update, // never update existing scripted attribute defs, regardless of version numbers
50  always_update, // always update existing scripted attribute defs with load def, regardless of version numbers
51  update_when_load_version_greater_than_current_version, // update existing scripted attribute def if load version > existing version
52  update_when_load_version_greater_than_or_equal_to_current_version, // update existing scripted attribute def if load version >= existing version
53  };
Definition: mxsCustomAttributes.h:50
Definition: mxsCustomAttributes.h:49

Constructor & Destructor Documentation

Member Function Documentation

static MSCustAttribDef* intern ( Class_ID attrib_id)
static
ScripterExport void init ( int  local_count,
Value **  inits,
HashTable local_scope,
HashTable handlers,
Array *  pblock_defs,
Array *  iremap_param_names,
Array *  rollouts,
CharStream source 
)
static ScripterExport MSCustAttribDef* find ( Class_ID attrib_id)
static
BOOL is_kind_of ( ValueMetaClass c)
inline
73 { return (c == class_tag(MSCustAttribDef)) ? 1 : MSPluginClass::is_kind_of(c); }
Definition: mxsCustomAttributes.h:36
#define class_tag(_cls)
Definition: value.h:460
void collect ( )
void gc_trace ( )
void sprin1 ( CharStream s)
bool is_custAttribDef ( )
inline
79 { return true; }
ScripterExport MSCustAttribDef* unique_clone ( )
Value* apply ( Value **  arg_list,
int  count,
CallContext cc = NULL 
)
inline
83 { return Value::apply(arg_list, count, cc); } // CustAttribDef's are not applyable
virtual ScripterExport Value * apply(Value **arglist, int count, CallContext *cc=NULL)
static IOResult save_custattrib_defs ( ISave isave)
static
static IOResult load_custattrib_defs ( ILoad iload)
static
RefTargetHandle Create ( BOOL  loading)
Value* get_property ( Value **  arg_list,
int  count 
)
Value* set_property ( Value **  arg_list,
int  count 
)
def_property ( name  )

Friends And Related Function Documentation

friend class MSCustAttrib
friend
ScripterExport bool HaveScriptedCustAttribDefs ( )
friend
Value* ca_getSceneDefs_cf ( Value **  arg_list,
int  count 
)
friend
Value* ca_deleteDef_cf ( Value **  arg_list,
int  count 
)
friend

Member Data Documentation

ScripterExport version_handling_behavior sceneLoadVersionHandling
static
ScripterExport version_handling_behavior sceneMergeVersionHandling
static
Value* defData
MSTR source