Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

dtool/src/interrogate/interrogate.cxx File Reference

#include "interrogate.h"
#include "interrogateBuilder.h"
#include <interrogateDatabase.h>
#include <cppGlobals.h>
#include <notify.h>
#include <time.h>
#include <gnu_getopt.h>

Go to the source code of this file.

Enumerations

enum  CommandOptions {
  CO_oc = 256, CO_od, CO_module, CO_library,
  CO_do_module, CO_fptrs, CO_fnames, CO_string,
  CO_refcount, CO_assert, CO_true_names, CO_c,
  CO_python, CO_python_obj, CO_track_interpreter, CO_unique_names,
  CO_nodb, CO_longlong, CO_promiscuous, CO_spam,
  CO_help
}

Functions

void show_usage ()
void show_help ()
void predefine_macro (CPPParser &parser, const string &option)
int main (int argc, char *argv[])

Variables

CPPParser parser
Filename output_code_filename
Filename output_data_filename
string output_data_basename
bool output_module_specific = false
bool output_function_pointers = false
bool output_function_names = false
bool convert_strings = false
bool manage_reference_counts = false
bool watch_asserts = false
bool true_wrapper_names = false
bool build_c_wrappers = false
bool build_python_wrappers = false
bool build_python_obj_wrappers = false
bool track_interpreter = false
bool save_unique_names = false
bool no_database = false
bool generate_spam = false
bool left_inheritance_requires_upcast = false
CPPVisibility min_vis = V_published
string library_name
string module_name
const char * short_options = "I:S:D:F:vh"
option long_options []


Detailed Description

Definition in file interrogate.cxx.


Enumeration Type Documentation

enum CommandOptions
 

Enumeration values:
CO_oc 
CO_od 
CO_module 
CO_library 
CO_do_module 
CO_fptrs 
CO_fnames 
CO_string 
CO_refcount 
CO_assert 
CO_true_names 
CO_c 
CO_python 
CO_python_obj 
CO_track_interpreter 
CO_unique_names 
CO_nodb 
CO_longlong 
CO_promiscuous 
CO_spam 
CO_help 

Definition at line 66 of file interrogate.cxx.


Function Documentation

int main int  argc,
char *  argv[]
 

Definition at line 298 of file interrogate.cxx.

References argv.

void predefine_macro CPPParser parser,
const string &  option
[static]
 

Definition at line 282 of file interrogate.cxx.

References size_t.

void show_help  ) 
 

Definition at line 123 of file interrogate.cxx.

void show_usage  ) 
 

Definition at line 116 of file interrogate.cxx.


Variable Documentation

bool build_c_wrappers = false
 

Definition at line 50 of file interrogate.cxx.

Referenced by main().

bool build_python_obj_wrappers = false
 

Definition at line 52 of file interrogate.cxx.

bool build_python_wrappers = false
 

Definition at line 51 of file interrogate.cxx.

Referenced by main().

bool convert_strings = false
 

Definition at line 46 of file interrogate.cxx.

bool generate_spam = false
 

Definition at line 56 of file interrogate.cxx.

bool left_inheritance_requires_upcast = false
 

Definition at line 57 of file interrogate.cxx.

string library_name
 

Definition at line 59 of file interrogate.cxx.

Referenced by main().

struct option long_options[] [static]
 

Initial value:

 {
  { "oc", required_argument, NULL, CO_oc },
  { "od", required_argument, NULL, CO_od },
  { "module", required_argument, NULL, CO_module },
  { "library", required_argument, NULL, CO_library },
  { "do-module", no_argument, NULL, CO_do_module },
  { "fptrs", no_argument, NULL, CO_fptrs },
  { "fnames", no_argument, NULL, CO_fnames },
  { "string", no_argument, NULL, CO_string },
  { "refcount", no_argument, NULL, CO_refcount },
  { "assert", no_argument, NULL, CO_assert },
  { "true-names", no_argument, NULL, CO_true_names },
  { "c", no_argument, NULL, CO_c },
  { "python", no_argument, NULL, CO_python },
  { "python-obj", no_argument, NULL, CO_python_obj },
  { "track-interpreter", no_argument, NULL, CO_track_interpreter },
  { "unique-names", no_argument, NULL, CO_unique_names },
  { "nodb", no_argument, NULL, CO_nodb },
  { "longlong", required_argument, NULL, CO_longlong },
  { "promiscuous", no_argument, NULL, CO_promiscuous },
  { "spam", no_argument, NULL, CO_spam },
  { "help", no_argument, NULL, CO_help },
  { NULL }
}

Definition at line 90 of file interrogate.cxx.

bool manage_reference_counts = false
 

Definition at line 47 of file interrogate.cxx.

CPPVisibility min_vis = V_published
 

Definition at line 58 of file interrogate.cxx.

Referenced by TypeManager::is_pointer_to_base(), InterrogateBuilder::remap_indices(), InterrogateBuilder::scan_enum_type(), and InterrogateBuilder::scan_function().

string module_name
 

Definition at line 60 of file interrogate.cxx.

Referenced by main(), and write_python_table().

bool no_database = false
 

Definition at line 55 of file interrogate.cxx.

Filename output_code_filename
 

Definition at line 40 of file interrogate.cxx.

Referenced by main().

string output_data_basename
 

Definition at line 42 of file interrogate.cxx.

Filename output_data_filename
 

Definition at line 41 of file interrogate.cxx.

bool output_function_names = false
 

Definition at line 45 of file interrogate.cxx.

Referenced by InterfaceMakerPythonSimple::get_wrapper_prefix(), InterfaceMakerPythonSimple::write_prototype_for(), and InterfaceMakerC::write_prototype_for().

bool output_function_pointers = false
 

Definition at line 44 of file interrogate.cxx.

bool output_module_specific = false
 

Definition at line 43 of file interrogate.cxx.

CPPParser parser
 

Definition at line 38 of file interrogate.cxx.

Referenced by InterrogateBuilder::build(), InterrogateBuilder::get_getter(), FunctionRemap::get_parameter_name(), InterrogateBuilder::in_noinclude(), TypeManager::is_pointable(), main(), ParameterRemapPTToPointer::ParameterRemapPTToPointer(), ParameterRemapToString::ParameterRemapToString(), ParameterRemapConcreteToPointer::pass_parameter(), TypeManager::unwrap_const(), TypeManager::wrap_pointer(), InterfaceMakerPythonObj::write_function_for(), FunctionWriterPtrToPython::write_prototype(), FunctionWriterPtrFromPython::write_prototype(), FunctionWriterPtrFromPython::~FunctionWriterPtrFromPython(), and FunctionWriterPtrToPython::~FunctionWriterPtrToPython().

bool save_unique_names = false
 

Definition at line 54 of file interrogate.cxx.

const char* short_options = "I:S:D:F:vh" [static]
 

Definition at line 63 of file interrogate.cxx.

bool track_interpreter = false
 

Definition at line 53 of file interrogate.cxx.

Referenced by main().

bool true_wrapper_names = false
 

Definition at line 49 of file interrogate.cxx.

bool watch_asserts = false
 

Definition at line 48 of file interrogate.cxx.


Generated on Thu May 1 22:13:11 2003 for DTool by doxygen1.3