insanity_data
List of: Classes
Subjects: Debugging
Contents: Intersectors

Purpose: This class holds information about problems (insanities) found when checking an ACIS model.

Derivation: insanity_data : ACIS_OBJECT : -

Filename: intr/intersct/sg_husk/sanity/insanity_list.hxx

Description: As an ACIS model is checked, a list of problems or insanities is generated. The information about each insanity is stored an insanity_data object. The insanity_data objects are stored and accessed using the insanity_list class. The insanity_data class provides member methods for accessing information about the insanity.

References: by INTR insanity_list

KERN ENTITY

Data: public char *aux_msg;

Insanity message.


public msg_data *aux_data;

Auxiliary message data.

Constructor: public: insanity_data::insanity_data ();


C++ allocation constructor requests memory for this object but does not populate it.






public: insanity_data::insanity_data (


ENTITY* e, // insane entity


int id, // insanity number


insanity_type type, // insanity type


int(*pfunc)(ENTITY*, // failed primary


const SPATIAL::SPAtransf*,// function


insanity_list*), //


insanity_list*(*sub_pfunc)(ENTITY*),// failed




// subsequent function


char* mesg // insanity message


);


C++ initialize constructor requests memory for this object and populates it with the data supplied as arguments.






public: insanity_data::insanity_data (


ENTITY* e, // insane entity


int id, // insanity number


insanity_type type, // insanity type


int(*pfunc)(ENTITY*, // failed primary


const SPATIAL::SPAtransf*,// function


insanity_list*), //


insanity_list*(*sub_pfunc)(ENTITY*),// failed




// subsequent function


char* mesg, // insanity message


msg_data* data // auxiliary message




// data


);


C++ initialize constructor requests memory for this object and populates it with the data supplied as arguments.






public: insanity_data::insanity_data (


ENTITY* e, // insane entity


int id, // insanity number


insanity_type type, // insanity type


int(*pfunc)(ENTITY*, // failed primary


const SPATIAL::SPAtransf*,// function


insanity_list*) //



= NULL, //


insanity_list*(*sub_pfunc)(ENTITY*)// failed



= NULL // subsequent function


);


C++ initialize constructor requests memory for this object and populates it with the data supplied as arguments.






public: insanity_data::insanity_data (


ENTITY* e, // insane entity


int id, // insanity number


insanity_type type, // insanity type


int(*pfunc)(ENTITY*, // failed primary


const SPAtransf*, // function


insanity_list*), //


insanity_list*(*sub_pfunc)(ENTITY*),// failed




// subsequent function


char* mesg // insanity message


);


C++ initialize constructor requests memory for this object and populates it with the data supplied as arguments.






public: insanity_data::insanity_data (


ENTITY* e, // insane entity


int id, // insanity number


insanity_type type, // insanity type


int(*pfunc)(ENTITY*, // failed primary


const SPAtransf*, // function


insanity_list*), //


insanity_list*(*sub_pfunc)(ENTITY*),// failed




// subsequent function


char* mesg, // insanity message


msg_data* data // auxiliary message data


);


C++ initialize constructor requests memory for this object and populates it with the data supplied as arguments.






public: insanity_data::insanity_data (


ENTITY* e, // insane entity


int id, // insanity number


insanity_type type, // insanity type


int(*pfunc)(ENTITY*, // failed primary


const SPAtransf*, // function


insanity_list*) //



= NULL, //


insanity_list*(*sub_pfunc)(ENTITY*)// failed



= NULL // subsequent function


);


C++ initialize constructor requests memory for this object and populates it with the data supplied as arguments.




Destructor: public: insanity_data::~insanity_data ();



Methods: public: ENTITY* insanity_data::get_ent ();


Gets ENTITY.






public: int insanity_data::get_insane_id ();


Gets insane_id.






public: const char* insanity_data::get_message ();


Gets the error or insanity message.






public: insanity_type insanity_data::get_type ();


Gets insanity type.






public: insanity_data::insanity_list* (


*sub_chkfn)(ENTITY* // Pointer to ENTITY


);


Pointer to a failed subsequent function.






public: insanity_data::int (


*chk_func)(ENTITY*, // Pointer to ENTITY


const SPATIAL::SPAtransf*,// Pointer to




// transformation matrix


insanity_list* // Pointer to insanity




// list


);


Pointer to a failed primary function.






public: void insanity_data::print_message (


FILE* fptr // File pointer


);


Prints the message into the file.






public: insanity_list* insanity_data::recheck ();


Re-checks the sanity of the entity with the failed check function.
PDF/INTR/04CL.PDF
HTM/DATA/INTR/INTR/04CL/0008.HTM