mirror of
https://github.com/nasa/trick.git
synced 2025-06-22 00:41:52 +00:00
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:
@ -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 ;
|
||||
}
|
||||
|
Reference in New Issue
Block a user