OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ProcessorGenerator Class Reference
Collaboration diagram for ProcessorGenerator:

Public Member Functions

 ProcessorGenerator (t_cpp_generator *generator, t_service *service, const string &style)
 
void run ()
 
void generate_class_definition ()
 
void generate_process ()
 
void generate_process_fn ()
 
void generate_process_functions ()
 
void generate_factory ()
 

Protected Member Functions

std::string type_name (t_type *ttype, bool in_typedef=false, bool arg=false)
 
std::string indent ()
 
std::ostream & indent (std::ostream &os)
 
void indent_up ()
 
void indent_down ()
 

Protected Attributes

t_cpp_generatorgenerator_
 
t_serviceservice_
 
std::ofstream & f_header_
 
std::ofstream & f_out_
 
string service_name_
 
string style_
 
string pstyle_
 
string class_name_
 
string if_name_
 
string factory_class_name_
 
string finish_cob_
 
string finish_cob_decl_
 
string ret_type_
 
string call_context_
 
string cob_arg_
 
string call_context_arg_
 
string call_context_decl_
 
string template_header_
 
string template_suffix_
 
string typename_str_
 
string class_suffix_
 
string extends_
 
string extends_processor_
 

Detailed Description

Definition at line 6048 of file t_cpp_generator.cc.

Constructor & Destructor Documentation

ProcessorGenerator::ProcessorGenerator ( t_cpp_generator generator,
t_service service,
const string &  style 
)

Definition at line 6115 of file t_cpp_generator.cc.

Here is the call graph for this function:

Member Function Documentation

void ProcessorGenerator::generate_class_definition ( )

Definition at line 6168 of file t_cpp_generator.cc.

Here is the call graph for this function:

void ProcessorGenerator::generate_factory ( )

Definition at line 6409 of file t_cpp_generator.cc.

Here is the call graph for this function:

void ProcessorGenerator::generate_process ( )

Definition at line 6297 of file t_cpp_generator.cc.

Here is the call graph for this function:

void ProcessorGenerator::generate_process_fn ( )

Definition at line 6340 of file t_cpp_generator.cc.

Here is the call graph for this function:

void ProcessorGenerator::generate_process_functions ( )

Definition at line 6396 of file t_cpp_generator.cc.

Here is the call graph for this function:

std::string ProcessorGenerator::indent ( )
inlineprotected

Definition at line 6076 of file t_cpp_generator.cc.

std::ostream& ProcessorGenerator::indent ( std::ostream &  os)
inlineprotected

Definition at line 6079 of file t_cpp_generator.cc.

void ProcessorGenerator::indent_down ( )
inlineprotected

Definition at line 6086 of file t_cpp_generator.cc.

void ProcessorGenerator::indent_up ( )
inlineprotected

Definition at line 6083 of file t_cpp_generator.cc.

void ProcessorGenerator::run ( )
inline

Definition at line 6053 of file t_cpp_generator.cc.

std::string ProcessorGenerator::type_name ( t_type ttype,
bool  in_typedef = false,
bool  arg = false 
)
inlineprotected

Definition at line 6072 of file t_cpp_generator.cc.

Member Data Documentation

string ProcessorGenerator::call_context_
protected

Definition at line 6103 of file t_cpp_generator.cc.

string ProcessorGenerator::call_context_arg_
protected

Definition at line 6105 of file t_cpp_generator.cc.

string ProcessorGenerator::call_context_decl_
protected

Definition at line 6106 of file t_cpp_generator.cc.

string ProcessorGenerator::class_name_
protected

Definition at line 6097 of file t_cpp_generator.cc.

string ProcessorGenerator::class_suffix_
protected

Definition at line 6110 of file t_cpp_generator.cc.

string ProcessorGenerator::cob_arg_
protected

Definition at line 6104 of file t_cpp_generator.cc.

string ProcessorGenerator::extends_
protected

Definition at line 6111 of file t_cpp_generator.cc.

string ProcessorGenerator::extends_processor_
protected

Definition at line 6112 of file t_cpp_generator.cc.

std::ofstream& ProcessorGenerator::f_header_
protected

Definition at line 6092 of file t_cpp_generator.cc.

std::ofstream& ProcessorGenerator::f_out_
protected

Definition at line 6093 of file t_cpp_generator.cc.

string ProcessorGenerator::factory_class_name_
protected

Definition at line 6099 of file t_cpp_generator.cc.

string ProcessorGenerator::finish_cob_
protected

Definition at line 6100 of file t_cpp_generator.cc.

string ProcessorGenerator::finish_cob_decl_
protected

Definition at line 6101 of file t_cpp_generator.cc.

t_cpp_generator* ProcessorGenerator::generator_
protected

Definition at line 6090 of file t_cpp_generator.cc.

string ProcessorGenerator::if_name_
protected

Definition at line 6098 of file t_cpp_generator.cc.

string ProcessorGenerator::pstyle_
protected

Definition at line 6096 of file t_cpp_generator.cc.

string ProcessorGenerator::ret_type_
protected

Definition at line 6102 of file t_cpp_generator.cc.

t_service* ProcessorGenerator::service_
protected

Definition at line 6091 of file t_cpp_generator.cc.

string ProcessorGenerator::service_name_
protected

Definition at line 6094 of file t_cpp_generator.cc.

string ProcessorGenerator::style_
protected

Definition at line 6095 of file t_cpp_generator.cc.

string ProcessorGenerator::template_header_
protected

Definition at line 6107 of file t_cpp_generator.cc.

string ProcessorGenerator::template_suffix_
protected

Definition at line 6108 of file t_cpp_generator.cc.

string ProcessorGenerator::typename_str_
protected

Definition at line 6109 of file t_cpp_generator.cc.


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