Purpose:
|
Records an entity type name, a pointer to a
restore_data routine for that type of entity, and a link pointer.
|
|
Derivation:
|
restore_def : ACIS_OBJECT : -
|
|
Filename:
|
kern/kernel/kerndata/savres/savres.hxx
|
|
Description:
|
This class records an entity type name, a pointer to a
restore_data routine for that type of entity, and a link pointer. A constructor for the class links instances of the class into a chain at initialization.
|
|
Constructor:
|
public: restore_def::restore_def
(
|
|
|
char const*,
|
|
// ext. entity name
|
|
|
int&,
|
|
// entity type code
|
|
|
ptr_to_restore_routine_type,
|
// sub-class head_ptr
|
|
|
restore_def* const*
|
|
// ptr to associated
|
|
|
|
= NULL
|
|
// entities
|
|
|
);
|
|
|
C++ initialize constructor requests memory for this object and populates it with the data supplied as arguments.
|
|
|
|
|
|
|
public: restore_def::restore_def
(
|
|
|
restore_def*&,
|
|
// owning class
|
|
|
|
|
|
// head_ptr
|
|
|
char const*,
|
|
// ext. entity name
|
|
|
int&,
|
|
// entity type code
|
|
|
ptr_to_restore_routine_type,
|
// sub-class head_ptr
|
|
|
restore_def* const*
|
|
// ptr to associated
|
|
|
|
= NULL
|
|
// entities
|
|
|
);
|
|
|
C++ initialize constructor requests memory for this object and populates it with the data supplied as arguments.
|
|
|
Constructs the sub-class of a main class or sub-class of
restore_def, with some possible subclasses.
|
|
|
|
|
Destructor:
|
public: restore_def::~restore_def();
|
|
|
C++ destructor for
restore_def which deallocates memory.
|
|
|
|
Methods:
|
public: int restore_def::get_ent_code
() const;
|
|
|
Returns the integer identifier of objects of this class.
|
|
|
|
|
|
|
public: char const*
|
|
|
restore_def::get_ent_name () const;
|
|
|
Returns the string describing objects of this class.
|
|
|
|
|
|
|
public: ptr_to_restore_routine_type
|
|
|
restore_def::get_restore_routine () const;
|
|
|
Returns a pointer to the routine to restore objects of this class.
|
|
|
|
|
|
|
public: restore_def*
|
|
|
restore_def::get_sub_classes () const;
|
|
|
Returns a pointer to a list of
restore_defs for all classes immediately derived from this one.
|
|
|
|
|
|
|
public: restore_def* restore_def::next
() const;
|
|
|
Returns a pointer to the next
restore_def in the list.
|
|
|
|
|
|
|
public: static logical
|
|
|
restore_def::remove_from_list (
|
|
|
restore_def** sub_classes_list,
|
// list of
|
|
|
|
|
|
|
// classes
|
|
|
restore_def* object_to_remove
|
// object to
|
|
|
|
|
|
|
// remove
|
|
|
);
|
|
|
Removes an object from the restore list.
|
|
|
|
|
Related Fncs:
|
copy_body_from_body, copy_entity_from_entity, find_entity_code, get_save_file_version, get_savres_file_interface, read_array, restore_body_from_file, restore_entity_from_file, restore_entity_list_from_file, restore_some_entities, save_body_on_file, save_entity_list_on_file, save_entity_on_file, set_save_file_version
|