Panda3D
|
The base class for things that are part of the interrogate database. More...
#include "interrogateComponent.h"
Public Member Functions | |
InterrogateComponent (InterrogateModuleDef *def=NULL) | |
InterrogateComponent (const InterrogateComponent ©) | |
const string & | get_alt_name (int n) const |
const char * | get_library_name () const |
Returns the library name, if it is known, or NULL if it is not. More... | |
const char * | get_module_name () const |
Returns the module name, if it is known, or NULL if it is not. More... | |
const string & | get_name () const |
int | get_num_alt_names () const |
bool | has_library_name () const |
Returns true if we have a known library name, false if we do not. More... | |
bool | has_module_name () const |
Returns true if we have a known module name, false if we do not. More... | |
bool | has_name () const |
void | input (istream &in) |
Reads the data file as previously formatted by output(). More... | |
void | operator= (const InterrogateComponent ©) |
void | output (ostream &out) const |
Formats the component for output to a data file. More... | |
Friends | |
class | FunctionRemap |
class | InterrogateBuilder |
The base class for things that are part of the interrogate database.
This includes types, functions, and function wrappers.
Definition at line 33 of file interrogateComponent.h.
|
inline |
Returns the library name, if it is known, or NULL if it is not.
This is the name of the library that this particular component was built into. Typically this will be a one-to-one correspondance with an invocation of the interrogate command. Typical examples are "libutil" and "liblinmath".
Definition at line 73 of file interrogateComponent.I.
References has_module_name().
Referenced by has_library_name().
|
inline |
Returns the module name, if it is known, or NULL if it is not.
This is the name of the module that this particular component is associated with. This is a higher grouping than library. Typical examples are "panda" and "pandaegg".
Definition at line 102 of file interrogateComponent.I.
Referenced by has_module_name().
|
inline |
Returns true if we have a known library name, false if we do not.
See get_library_name().
Definition at line 57 of file interrogateComponent.I.
References get_library_name().
|
inline |
Returns true if we have a known module name, false if we do not.
See get_module_name().
Definition at line 87 of file interrogateComponent.I.
References get_module_name().
Referenced by get_library_name().
void InterrogateComponent::input | ( | istream & | in | ) |
Reads the data file as previously formatted by output().
Definition at line 45 of file interrogateComponent.cxx.
Referenced by InterrogateMakeSeq::input(), InterrogateManifest::input(), InterrogateElement::input(), InterrogateFunctionWrapper::input(), InterrogateFunction::input(), InterrogateType::input(), and output().
void InterrogateComponent::output | ( | ostream & | out | ) | const |
Formats the component for output to a data file.
Definition at line 28 of file interrogateComponent.cxx.
References input().
Referenced by InterrogateMakeSeq::output(), InterrogateManifest::output(), InterrogateElement::output(), InterrogateFunctionWrapper::output(), InterrogateFunction::output(), and InterrogateType::output().