ATTRIB_ST
List of: Classes
Subjects: Attributes, SAT Save and Restore
Contents: Kernel

Purpose: Organization attribute from which various color, display, id, and other attributes are derived.

Derivation: ATTRIB_ST : ATTRIB : ENTITY : ACIS_OBJECT : -

SAT Identifier: "st"

Filename: kern/kernel/geomhusk/attr_sti.hxx

Description: This class is an attribute declaration for a private container attribute. This class is derived from the ACIS base class, ATTRIB. Each application developer receives a customized attribute declaration. The application developer then makes all attributes specific to the application-derived classes of this attribute, ensuring that different developers can assign identifiers independently without interference.

Constructor: public: ATTRIB_ST::ATTRIB_ST (


ENTITY* // owning entity



= NULL


);


C++ initialize constructor requests memory for this object and populates it with the data supplied as arguments. Applications should call this constructor only with the overloaded new operator, because this reserves the memory on the heap, a requirement to support roll back and history management.




Destructor: public: virtual void ATTRIB_ST::lose ();


Posts a delete bulletin to the bulletin board indicating the instance is no longer used in the active model. The lose methods for attached attributes are also called.






protected: virtual ATTRIB_ST::~ATTRIB_ST ();


This C++ destructor should never be called directly. Instead, applications should use the overloaded lose method inherited from the ENTITY class, because this supports history management. (For example, x=new ATTRIB_ST(...) then later x->lose.)



Methods: public: virtual void ATTRIB_ST::debug_ent (


FILE* // file pointer


) const;


Prints the type and address of this object, roll back pointer, attributes, and any unknown subtype information to the specified file. Refer to the ENTITY class for more details.






public: virtual int ATTRIB_ST::identity (


int
// level



= 0


) const;


If level is unspecified or 0, returns the type identifier ATTRIB_SYS_TYPE. If level is specified, returns ATTRIB_SYS_TYPE for that level of derivation from ENTITY. The level of this class is defined as ATTRIB_SYS_LEVEL.






public: virtual logical


ATTRIB_ST::is_deepcopyable () const;


Returns TRUE if the attribute is deep copyable.






public: void ATTRIB_ST::restore_common ();


The RESTORE_DEF macro expands to the restore_common method, which is used in reading information from a SAT file. This method is never called directly. It is called by a higher hierarchical function if an item in the SAT file is determined to be of this class type. An instance of this class will already have been created through the allocation constructor. This method then populates the class instance with the appropriate data from the SAT file.


No data



This class does not save any data






public: virtual const char*


ATTRIB_ST::type_name () const;


Returns the string "st".

Internal Use: save, save_common




Related Fncs: is_ATTRIB_ST
PDF/KERN/27CLA.PDF
HTM/DATA/KERN/KERN/27CLA/0009.HTM