OpenSDN source code
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::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

◆ generate_class_definition()

void ProcessorGenerator::generate_class_definition ( )

Definition at line 6168 of file t_cpp_generator.cc.

Here is the call graph for this function:

◆ generate_factory()

void ProcessorGenerator::generate_factory ( )

Definition at line 6409 of file t_cpp_generator.cc.

Here is the call graph for this function:

◆ generate_process()

void ProcessorGenerator::generate_process ( )

Definition at line 6297 of file t_cpp_generator.cc.

Here is the call graph for this function:

◆ generate_process_fn()

void ProcessorGenerator::generate_process_fn ( )

Definition at line 6340 of file t_cpp_generator.cc.

Here is the call graph for this function:

◆ generate_process_functions()

void ProcessorGenerator::generate_process_functions ( )

Definition at line 6396 of file t_cpp_generator.cc.

Here is the call graph for this function:

◆ indent() [1/2]

std::string ProcessorGenerator::indent ( )
inlineprotected

Definition at line 6076 of file t_cpp_generator.cc.

◆ indent() [2/2]

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

Definition at line 6079 of file t_cpp_generator.cc.

◆ indent_down()

void ProcessorGenerator::indent_down ( )
inlineprotected

Definition at line 6086 of file t_cpp_generator.cc.

◆ indent_up()

void ProcessorGenerator::indent_up ( )
inlineprotected

Definition at line 6083 of file t_cpp_generator.cc.

◆ run()

void ProcessorGenerator::run ( )
inline

Definition at line 6053 of file t_cpp_generator.cc.

◆ type_name()

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

◆ call_context_

string ProcessorGenerator::call_context_
protected

Definition at line 6103 of file t_cpp_generator.cc.

◆ call_context_arg_

string ProcessorGenerator::call_context_arg_
protected

Definition at line 6105 of file t_cpp_generator.cc.

◆ call_context_decl_

string ProcessorGenerator::call_context_decl_
protected

Definition at line 6106 of file t_cpp_generator.cc.

◆ class_name_

string ProcessorGenerator::class_name_
protected

Definition at line 6097 of file t_cpp_generator.cc.

◆ class_suffix_

string ProcessorGenerator::class_suffix_
protected

Definition at line 6110 of file t_cpp_generator.cc.

◆ cob_arg_

string ProcessorGenerator::cob_arg_
protected

Definition at line 6104 of file t_cpp_generator.cc.

◆ extends_

string ProcessorGenerator::extends_
protected

Definition at line 6111 of file t_cpp_generator.cc.

◆ extends_processor_

string ProcessorGenerator::extends_processor_
protected

Definition at line 6112 of file t_cpp_generator.cc.

◆ f_header_

std::ofstream& ProcessorGenerator::f_header_
protected

Definition at line 6092 of file t_cpp_generator.cc.

◆ f_out_

std::ofstream& ProcessorGenerator::f_out_
protected

Definition at line 6093 of file t_cpp_generator.cc.

◆ factory_class_name_

string ProcessorGenerator::factory_class_name_
protected

Definition at line 6099 of file t_cpp_generator.cc.

◆ finish_cob_

string ProcessorGenerator::finish_cob_
protected

Definition at line 6100 of file t_cpp_generator.cc.

◆ finish_cob_decl_

string ProcessorGenerator::finish_cob_decl_
protected

Definition at line 6101 of file t_cpp_generator.cc.

◆ generator_

t_cpp_generator* ProcessorGenerator::generator_
protected

Definition at line 6090 of file t_cpp_generator.cc.

◆ if_name_

string ProcessorGenerator::if_name_
protected

Definition at line 6098 of file t_cpp_generator.cc.

◆ pstyle_

string ProcessorGenerator::pstyle_
protected

Definition at line 6096 of file t_cpp_generator.cc.

◆ ret_type_

string ProcessorGenerator::ret_type_
protected

Definition at line 6102 of file t_cpp_generator.cc.

◆ service_

t_service* ProcessorGenerator::service_
protected

Definition at line 6091 of file t_cpp_generator.cc.

◆ service_name_

string ProcessorGenerator::service_name_
protected

Definition at line 6094 of file t_cpp_generator.cc.

◆ style_

string ProcessorGenerator::style_
protected

Definition at line 6095 of file t_cpp_generator.cc.

◆ template_header_

string ProcessorGenerator::template_header_
protected

Definition at line 6107 of file t_cpp_generator.cc.

◆ template_suffix_

string ProcessorGenerator::template_suffix_
protected

Definition at line 6108 of file t_cpp_generator.cc.

◆ typename_str_

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: