compiler/cpp/src/generate/t_go_generator.cc
/**
 * Generates helper functions for a service.
 *
 * @param tservice The service to generate a header definition for
 */
Generates helper functions for a service.
@param tservice The service to generate a header definition for
Generates helper functions for a service . @param tservice The service to generate a header definition for
void t_go_generator::generate_service_helpers(t_service* tservice) {
  vector<t_function*> functions = tservice->get_functions();
  vector<t_function*>::iterator f_iter;
  f_service_ <<
    "// HELPER FUNCTIONS AND STRUCTURES" << endl << endl;
  for (f_iter = functions.begin(); f_iter != functions.end(); ++f_iter) {
    t_struct* ts = (*f_iter)->get_arglist();
    generate_go_struct_definition(f_service_, ts, false);
    generate_go_function_helpers(*f_iter);
  }
}
void t_go_generator :: generate_service_helpers ( t_service * tservice ) { vector < t_function * > functions = tservice -> get_functions ( ) ; vector < t_function * > :: iterator f_iter ; f_service_ << " " << endl << endl ; for ( f_iter = functions . begin ( ) ; f_iter != functions . end ( ) ; ++ f_iter ) { t_struct * ts = ( * f_iter ) -> get_arglist ( ) ; generate_go_struct_definition ( f_service_ , ts , false ) ; generate_go_function_helpers ( * f_iter ) ; } }
Generates helper functions for a service.
Generates helper functions for a service .