Inheritance diagram for oaAppDef:
Public Methods | |
void | getName (oaString &name) const |
void | getName (oaString &name) |
oaBoolean | isPersistent () const |
void | destroy (oaObject *object) |
oaBoolean | isUsedIn (const oaObject *database) |
void | remove (oaObject *database) |
All uses of a given AppDef across a session must be consistent. A “given” AppDef is determined by its name and the class of object it applies to. For a given name and class pair, all the other attributes - persistence, type of value, and default value - must have a consistent setting. For example, if an IntAppDef named “myData” exists on oaNets, trying to get() a FloatAppDef named “myData” on oaNets will throw an exception. However it is still legal to get() a BooleanAppDef named “myData” on oaInsts.
An AppDef will exist in a given session either because it exists in an open database, or because the application has done a get() on it. Once an AppDef exists in a given session any attempt to create an inconsistent AppDef of the same name and object type will be an error. If a database is opened that has an AppDef stored in it that is inconsistent with a previously existing AppDef, then the newly read AppDef and its associated extension data will be ignored and will not be available to the application.
Note: oaAppDefs and oaProps and should not be created on oaDMObjects such as oaLibs and oaCellViews. While OpenAccess does not enforce this restriction, there is no way to save such extensions. Instead, use a corresponding oaDMData object to properly represent these Props and AppDefs.
Please refer to documentation for classes derived from oaAppDef for further information on their use. Also see Extending the Database in the Programmer's Guide for information on what classes can be extended and additional usage information. Also, see Uniqueness of Session Objects for information about the requirement that session objects be unique.
The oaAppDef class can be observed by deriving from oaObserver<oaAppDef>.
|
This function removes the extension data set on the specified object.
|
|
This function is deprecated. Use the const oaAppDef::getName function instead. This function returns the name of the extension. |
|
This function returns the name of the extension. |
|
This function returns the value of the persistence flag for this AppDef. Persistent extension data is saved to the disk when its database is saved and will be present when the database is opened at a later time. Note that the first AppDef used to write a given type of extension data in a given database will determine its persistence. You cannot have some items that are persistent and some that are not for a single database and extension name. |
|
This function returns true if the extension is used in the specified database. Note that extensions that are set to the default value are not counted as being used.
|
|
This function removes extension data of this extension from the specified database.
|
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.