Panda3D
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
InterrogateComponent Class Reference

The base class for things that are part of the interrogate database. More...

#include "interrogateComponent.h"

Inheritance diagram for InterrogateComponent:
InterrogateElement InterrogateFunction InterrogateFunctionWrapper InterrogateMakeSeq InterrogateManifest InterrogateType

Public Member Functions

 InterrogateComponent (const InterrogateComponent &copy)
 
 InterrogateComponent (InterrogateModuleDef *def=nullptr)
 
const std::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.
 
const char * get_module_name () const
 Returns the module name, if it is known, or NULL if it is not.
 
const std::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.
 
bool has_module_name () const
 Returns true if we have a known module name, false if we do not.
 
bool has_name () const
 
void input (std::istream &in)
 Reads the data file as previously formatted by output().
 
void operator= (const InterrogateComponent &copy)
 
void output (std::ostream &out) const
 Formats the component for output to a data file.
 

Friends

class FunctionRemap
 
class InterrogateBuilder
 

Detailed Description

The base class for things that are part of the interrogate database.

This includes types, functions, and function wrappers.

Definition at line 30 of file interrogateComponent.h.

Constructor & Destructor Documentation

◆ InterrogateComponent() [1/2]

InterrogateComponent::InterrogateComponent ( InterrogateModuleDef * def = nullptr)
inline

Definition at line 17 of file interrogateComponent.I.

◆ InterrogateComponent() [2/2]

InterrogateComponent::InterrogateComponent ( const InterrogateComponent & copy)
inline

Definition at line 26 of file interrogateComponent.I.

Member Function Documentation

◆ get_alt_name()

const std::string & InterrogateComponent::get_alt_name ( int n) const
inline

Definition at line 117 of file interrogateComponent.I.

◆ get_library_name()

const char * InterrogateComponent::get_library_name ( ) const
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 58 of file interrogateComponent.I.

Referenced by has_library_name().

◆ get_module_name()

const char * InterrogateComponent::get_module_name ( ) const
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 82 of file interrogateComponent.I.

Referenced by has_module_name().

◆ get_name()

const std::string & InterrogateComponent::get_name ( ) const
inline

Definition at line 101 of file interrogateComponent.I.

◆ get_num_alt_names()

int InterrogateComponent::get_num_alt_names ( ) const
inline

Definition at line 109 of file interrogateComponent.I.

◆ has_library_name()

bool InterrogateComponent::has_library_name ( ) const
inline

Returns true if we have a known library name, false if we do not.

See get_library_name().

Definition at line 46 of file interrogateComponent.I.

References get_library_name().

◆ has_module_name()

bool InterrogateComponent::has_module_name ( ) const
inline

Returns true if we have a known module name, false if we do not.

See get_module_name().

Definition at line 70 of file interrogateComponent.I.

References get_module_name().

◆ has_name()

bool InterrogateComponent::has_name ( ) const
inline

Definition at line 93 of file interrogateComponent.I.

◆ input()

void InterrogateComponent::input ( std::istream & in)

◆ operator=()

void InterrogateComponent::operator= ( const InterrogateComponent & copy)
inline

Definition at line 36 of file interrogateComponent.I.

◆ output()

void InterrogateComponent::output ( std::ostream & out) const

Friends And Related Symbol Documentation

◆ FunctionRemap

friend class FunctionRemap
friend

Definition at line 62 of file interrogateComponent.h.

◆ InterrogateBuilder

friend class InterrogateBuilder
friend

Definition at line 61 of file interrogateComponent.h.


The documentation for this class was generated from the following files: