SIM/SIM_Data.h File Reference

#include "SIM_API.h"
#include <iostream.h>
#include <UT/UT_Guid.h>
#include <UT/UT_IntArray.h>
#include <UT/UT_PtrArraySorted.h>
#include <UT/UT_PtrArray.h>
#include <UT/UT_BitArray.h>
#include <UT/UT_StringArray.h>
#include <UT/UT_SymbolTable.h>
#include <UT/UT_VectorTypes.h>
#include <GU/GU_DetailHandle.h>
#include "SIM_Error.h"
#include "SIM_Time.h"

Go to the source code of this file.

Classes

class  SIM_EachDataCallback
class  SIM_Data
class  SIM_Data::SIM_SubDataInfo
 This class stores information about our subdata if we have any.

Defines

#define SIM_DATA_RETURN_EXISTING   0x01
#define SIM_DATA_CREATE_UNIQUE_NAME   0x02
#define SIM_DATA_ADOPT_EXISTING_ON_DELETE   0x04

Typedefs

typedef UT_PtrArray< SIM_Data * > SIM_DataArray
 This definition holds on to a collection of SIM_Data pointers.
typedef UT_PtrArraySorted
< SIM_Data * > 
SIM_SortedDataArray
 This definition holds on to a sorted collection of SIM_Data pointers.
typedef UT_PtrArray< const
SIM_Data * > 
SIM_ConstDataArray
 This definition holds on to a collection of const SIM_Data pointers.
typedef UT_PtrArraySorted
< const SIM_Data * > 
SIM_SortedConstDataArray
 This definition holds on to a sorted collection of const SIM_Data pointers.

Enumerations

enum  SIM_SubdataBehavior { SIM_SUBDATA_REPLACE, SIM_SUBDATA_ADD, SIM_SUBDATA_IGNORE }


Define Documentation

#define SIM_DATA_ADOPT_EXISTING_ON_DELETE   0x04

Signifies that if a new sub-data is created to replace existing data, that the existing data should be copied into the new data. If an existing sub-data with the given name is found, but is the wrong data type or the SIM_DATA_RETURN_EXISTING constant is not set, then a new data will be created to replace the existing data. If this constant is not set, the new data uses all default values instead of trying to copy information from the existing data. This constant can be used in the creationflags parameter in the SIM_Data::createNamedSubData() function. This flag is ignored by SIM_Data::setNamedSubData().

Definition at line 118 of file SIM_Data.h.

#define SIM_DATA_CREATE_UNIQUE_NAME   0x02

Signifies that the new data should be given a unique new name. If any data with the same name already exists, instead of overwriting that existing data the data name is modified to create a unique name. The data name has numbers appended to it to create the unique name. If SIM_DATA_RETURN_EXISTING is also set, this flag takes precedence and new name for the new data will be created rather than returning the existing data. This constant can be used in the creationflags parameter in the SIM_Data::createNamedSubData() function or the setflags parameter in SIM_Data::setNamedSubData().

Definition at line 108 of file SIM_Data.h.

#define SIM_DATA_RETURN_EXISTING   0x01

Signifies that an existing non-const sub-data of the parent data can be returned instead of creating new data. This constant can be used in the creationflags parameter in the SIM_Data::createNamedSubData() function. If this value is in the setflags parameter to SIM_Data::setNamedSubData(), and any data with the specified name already exists, it is not deleted and the new data is not attached.

Examples:
DOP/DOP_GroupAndApply.C.

Definition at line 98 of file SIM_Data.h.


Typedef Documentation

This definition holds on to a collection of const SIM_Data pointers.

Definition at line 57 of file SIM_Data.h.

This definition holds on to a collection of SIM_Data pointers.

Definition at line 50 of file SIM_Data.h.

This definition holds on to a sorted collection of const SIM_Data pointers.

Definition at line 59 of file SIM_Data.h.

This definition holds on to a sorted collection of SIM_Data pointers.

Definition at line 55 of file SIM_Data.h.


Enumeration Type Documentation

This enumeration provides options on how to deal with subdata when calling makeEqual() or initialize(). The options are to eliminate any existing subdata and replace it with the source subdata; or to leave existing subdata, and copy any source subdata on top; or to leave the existing subdata and not copy over any of the source subdata. For calls to initialize(), where there is no source data, the ignore and add operations have the same behavior.

Enumerator:
SIM_SUBDATA_REPLACE 
SIM_SUBDATA_ADD 
SIM_SUBDATA_IGNORE 

Definition at line 127 of file SIM_Data.h.


Generated on Mon Jan 28 00:27:55 2013 for HDK by  doxygen 1.5.9