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

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 []


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 63 of file interrogate.cxx.


Function Documentation

int main int  argc,
char *  argv[]
 

Definition at line 295 of file interrogate.cxx.

References CPPPreprocessor::_include_path, CPPPreprocessor::_system_include_path, InterrogateBuilder::add_source_file(), DSearchPath::append_directory(), argv, InterrogateBuilder::build(), build_c_wrappers, build_python_obj_wrappers, build_python_wrappers, builder, CO_assert, CO_c, CO_do_module, CO_fnames, CO_fptrs, CO_help, CO_library, CO_longlong, CO_module, CO_nodb, CO_oc, CO_od, CO_promiscuous, CO_python, CO_python_obj, CO_refcount, CO_spam, CO_string, CO_track_interpreter, CO_true_names, CO_unique_names, convert_strings, cpp_longlong_keyword, cppparser_output_class_keyword, Filename::empty(), generate_spam, Filename::get_basename(), InterrogateDatabase::get_ptr(), CPPPreprocessor::get_verbose(), getopt_long_only, library_name, long_options, InterrogateBuilder::make_module_def(), manage_reference_counts, min_vis, module_name, no_database, nout, NULL, Filename::open_read(), Filename::open_write(), optarg, optind, output_code_filename, output_data_basename, output_data_filename, output_function_names, output_function_pointers, output_module_specific, CPPParser::parse_file(), parser, predefine_macro(), InterrogateBuilder::read_command_file(), save_unique_names, Filename::set_extension(), Filename::set_text(), CPPPreprocessor::set_verbose(), short_options, show_help(), show_usage(), time_t, track_interpreter, true_wrapper_names, V_public, watch_asserts, InterrogateDatabase::write(), and InterrogateBuilder::write_code().

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

Definition at line 279 of file interrogate.cxx.

References CPPPreprocessor::_manifests, CPPManifest::_name, parser, and size_t.

void show_help  ) 
 

Definition at line 120 of file interrogate.cxx.

References show_usage().

Referenced by main().

void show_usage  ) 
 

Definition at line 113 of file interrogate.cxx.

Referenced by main(), and show_help().


Variable Documentation

bool build_c_wrappers = false
 

Definition at line 47 of file interrogate.cxx.

Referenced by main().

bool build_python_obj_wrappers = false
 

Definition at line 49 of file interrogate.cxx.

Referenced by main().

bool build_python_wrappers = false
 

Definition at line 48 of file interrogate.cxx.

Referenced by main().

bool convert_strings = false
 

Definition at line 43 of file interrogate.cxx.

Referenced by main().

bool generate_spam = false
 

Definition at line 53 of file interrogate.cxx.

Referenced by main().

bool left_inheritance_requires_upcast = false
 

Definition at line 54 of file interrogate.cxx.

Referenced by InterrogateBuilder::define_struct_type().

string library_name
 

Definition at line 56 of file interrogate.cxx.

Referenced by InterrogateBuilder::build(), main(), InterrogateBuilder::make_module_def(), InterrogateBuilder::write_code(), and write_python_table().

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 87 of file interrogate.cxx.

bool manage_reference_counts = false
 

Definition at line 44 of file interrogate.cxx.

Referenced by main(), and FunctionRemap::setup_properties().

CPPVisibility min_vis = V_published
 

Definition at line 55 of file interrogate.cxx.

Referenced by InterrogateBuilder::define_method(), InterrogateBuilder::define_struct_type(), TypeManager::involves_unpublished(), main(), InterrogateBuilder::scan_element(), InterrogateBuilder::scan_enum_type(), InterrogateBuilder::scan_function(), InterrogateBuilder::scan_manifest(), and InterrogateBuilder::scan_struct_type().

string module_name
 

Definition at line 57 of file interrogate.cxx.

Referenced by main(), InterrogateBuilder::make_module_def(), and write_python_table().

bool no_database = false
 

Definition at line 52 of file interrogate.cxx.

Referenced by main(), and InterrogateBuilder::write_code().

Filename output_code_filename
 

Definition at line 37 of file interrogate.cxx.

Referenced by main().

string output_data_basename
 

Definition at line 39 of file interrogate.cxx.

Referenced by main(), and InterrogateBuilder::make_module_def().

Filename output_data_filename
 

Definition at line 38 of file interrogate.cxx.

Referenced by main(), and InterrogateBuilder::make_module_def().

bool output_function_names = false
 

Definition at line 42 of file interrogate.cxx.

Referenced by main(), InterfaceMakerPythonSimple::write_function_instance(), InterfaceMakerC::write_function_instance(), and InterfaceMakerPythonSimple::write_prototype_for().

bool output_function_pointers = false
 

Definition at line 41 of file interrogate.cxx.

Referenced by main().

bool output_module_specific = false
 

Definition at line 40 of file interrogate.cxx.

Referenced by main().

CPPParser parser
 

Definition at line 35 of file interrogate.cxx.

Referenced by InterrogateBuilder::build(), FunctionRemap::call_function(), InterrogateBuilder::define_enum_type(), InterrogateBuilder::define_method(), InterrogateBuilder::do_command(), FunctionWriterPtrFromPython::FunctionWriterPtrFromPython(), FunctionWriterPtrToPython::FunctionWriterPtrToPython(), TypeManager::get_basic_string_char_type(), InterfaceMakerPythonObj::get_builder_name(), FunctionRemap::get_call_str(), InterrogateBuilder::get_cast_function(), InterrogateBuilder::get_function(), TypeManager::get_function_name(), TypeManager::get_function_signature(), InterrogateBuilder::get_getter(), InterrogateBuilder::get_preferred_name(), TypeManager::get_reference_count_type(), ParameterRemapConcreteToPointer::get_return_expr(), InterrogateBuilder::get_setter(), InterrogateBuilder::get_type(), TypeManager::is_basic_string_char(), TypeManager::is_reference_count(), main(), FunctionRemap::make_wrapper_entry(), InterfaceMaker::manage_return_value(), InterfaceMaker::output_ref(), InterfaceMakerPythonObj::pack_return_value(), ParameterRemapPTToPointer::ParameterRemapPTToPointer(), ParameterRemapToString::ParameterRemapToString(), ParameterRemapEnumToInt::pass_parameter(), predefine_macro(), InterfaceMaker::remap_parameter(), TypeManager::resolve_type(), InterrogateBuilder::scan_element(), InterrogateBuilder::scan_function(), InterrogateBuilder::scan_manifest(), FunctionRemap::setup_properties(), show_data_members(), show_methods(), show_type_or_expression(), show_typedefs(), InterrogateBuilder::update_method_comment(), InterfaceMakerPythonObj::write_class_wrapper(), FunctionWriterPtrToPython::write_code(), FunctionWriterPtrFromPython::write_code(), InterfaceMakerC::write_function_header(), InterfaceMakerPythonSimple::write_function_instance(), InterfaceMakerPythonObj::write_function_instance(), FunctionRemap::write_orig_prototype(), FunctionWriterPtrToPython::write_prototype(), and FunctionWriterPtrFromPython::write_prototype().

bool save_unique_names = false
 

Definition at line 51 of file interrogate.cxx.

Referenced by main().

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

Definition at line 60 of file interrogate.cxx.

Referenced by main().

bool track_interpreter = false
 

Definition at line 50 of file interrogate.cxx.

Referenced by main().

bool true_wrapper_names = false
 

Definition at line 46 of file interrogate.cxx.

Referenced by main().

bool watch_asserts = false
 

Definition at line 45 of file interrogate.cxx.

Referenced by main().


Generated on Fri Apr 18 01:34:11 2003 for DTool by doxygen1.3