Split CP up into components that can be called individually

Initial rough checkin that partially works for the ball sim.

refs #86
This commit is contained in:
Alex Lin
2015-07-16 15:36:36 -05:00
parent 0b99667d9b
commit e1c1bbaccf
19 changed files with 1320 additions and 336 deletions

View File

@ -452,6 +452,7 @@ void PrintFileContents10::printClassMapHeader( std::ofstream & outfile , std::st
"#include <map>\n"
"#include <string>\n\n"
"#include \"trick/AttributesMap.hh\"\n"
"#include \"trick/EnumAttributesMap.hh\"\n"
"#include \"trick/attributes.h\"\n\n"
"void " << function_name << "() {\n\n"
" Trick::AttributesMap * class_attribute_map = Trick::AttributesMap::attributes_map();\n\n" ;
@ -474,19 +475,11 @@ void PrintFileContents10::printClassMap( std::ofstream & outfile , ClassValues *
}
void PrintFileContents10::printClassMapFooter( std::ofstream & outfile ) {
outfile << "}" << std::endl ;
outfile << "}" << std::endl << std::endl ;
}
void PrintFileContents10::printEnumMapHeader( std::ofstream & outfile , std::string function_name ) {
outfile <<
"/*\n"
" * This file was automatically generated by the ICG\n"
" * This file contains the map from enum names to attributes\n"
" */\n\n"
"#include <map>\n"
"#include <string>\n\n"
"#include \"trick/EnumAttributesMap.hh\"\n"
"#include \"trick/attributes.h\"\n\n"
"void " << function_name << "() {\n"
" Trick::EnumAttributesMap * enum_attribute_map __attribute__((unused)) = Trick::EnumAttributesMap::attributes_map();\n\n" ;
}
@ -507,5 +500,5 @@ void PrintFileContents10::printEnumMap( std::ofstream & outfile , EnumValues * e
}
void PrintFileContents10::printEnumMapFooter( std::ofstream & outfile ) {
outfile << "}" << std::endl ;
outfile << "}" << std::endl << std::endl ;
}