std::string argument_list(t_struct* tstruct, bool name_params=true, bool start_comma=false);
std::string type_to_enum(t_type* ttype);
std::string local_reflection_name(const char*, t_type* ttype, bool external=false);
- std::string get_cap_name(std::string name);
void generate_enum_constant_list(std::ofstream& f,
const vector<t_enum_value*>& constants,
std::set<std::string> reflected_fingerprints_;
};
-/**
- * Uppercases the first letter of the name
- */
-std::string t_cpp_generator::get_cap_name(std::string name) {
- name[0] = toupper(name[0]);
- return name;
-}
-
/**
* Prepares for file generation by opening up the necessary file output
* streams.
}
out <<
endl <<
- indent() << "void __set" << get_cap_name((*m_iter)->get_name()) <<
+ indent() << "void __set_" << (*m_iter)->get_name() <<
"(" << type_name((*m_iter)->get_type(), false, true);
out << " val) {" << endl << indent() <<
indent() << (*m_iter)->get_name() << " = val;" << endl;