Inheritance diagram for oaVarDataAppDef:
Public Methods | |
void | set (T *object, oaUInt4 dataSize, const oaByte *value) |
void | get (const T *object, oaByte *value) |
oaUInt4 | getSize (const T *object) |
oaUInt4 | getDefaultSize () const |
void | getDefault (oaByte *value) const |
Static Public Methods | |
oaVarDataAppDef< T > * | get (const oaString &name, oaBoolean persist=true) |
oaVarDataAppDef< T > * | get (const oaString &name, oaUInt4 defSize, const oaByte *defValue, oaBoolean persist=true) |
oaVarDataAppDef< T > * | get (const oaString &name, const oaAppObjectDef *objDef, oaBoolean persist=true) |
oaVarDataAppDef< T > * | get (const oaString &name, const oaAppObjectDef *objDef, oaUInt4 defSize, const oaByte *defValue, oaBoolean persist=true) |
oaVarDataAppDef< T > * | find (const oaString &name) |
oaVarDataAppDef< T > * | find (const oaString &name, const oaAppObjectDef *objDef) |
When the objects are created, a data field is added to each object of the specified dataType. Applications can use the new data field for whatever purpose is necessary.
This type of extension is useful because it allows variable-sized data for each object being extended. This is similar to the oaDataAppDef class, but more general because the data size can differ for each object. (There is a minor speed and size penalty for this additional flexibility.) The default value for this extension is zero bytes.
Note: Because the type of data is unknown to OpenAccess, it is unmanaged. This means the contents are not byte-swapped.
For additional information on defining and using AppDefs, see oaAppDef and Extending the Database in the Programmer's Guide.
|
This function returns an oaVarDataAppDef object with this dataType and the specified 'name' that is associated with the specified object extension 'objDef'.
|
|
This function returns an oaVarDataAppDef object with this dataType and the specified 'name' if it exists.
|
|
This function returns the value of this data extension.
|
|
This function constructs an oaVarDataAppDef class variable data extension with the specified name for the specified type of object.
|
|
This function constructs an oaVarDataAppDef class variable data extension with the specified name for the specified type of object.
|
|
This function constructs an oaVarDataAppDef class variable data extension with the specified name.
|
|
This function constructs an oaVarDataAppDef class variable data extension with the specified name.
|
|
This function fills out the given byte array with the default value for this extension. The byte array should be allocated before calling this function.
|
|
This function returns the default size for this extension in bytes. |
|
This function returns the size of the value of this data extension.
|
|
This function sets the value of this data extension.
|
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.