- ExpandVariables( real_classes, classes, vars );
-
- // Prepare precompiler options
- TLines global_header;
- std::stringstream global_header_stream;
- global_header_stream
- << "#ifndef __" << lname << "__H__" << std::endl
- << "#define __" << lname << "__H__" << std::endl<< std::endl
- << "#include <cpPlugins_Config.h>" << std::endl << std::endl;
- global_header.push_back( global_header_stream.str( ) );
-
- TLines macro_header;
- std::stringstream macro_header_stream;
- macro_header_stream
- << "#ifdef " << lname << "_EXPORTS" << std::endl
- << "# define " << lname << "_PREFIX template class "
- << lname << "_EXPORT" << std::endl
- << "#else // " << lname << "_EXPORTS" << std::endl
- << "# define " << lname << "_PREFIX extern template class" << std::endl
- << "#endif // " << lname << "_EXPORTS" << std::endl;
- macro_header.push_back( macro_header_stream.str( ) );
-
- TLines end_global_header;
- std::stringstream end_global_header_stream;
- end_global_header_stream
- << "#endif // __" << lname << "__H__" << std::endl;
- end_global_header.push_back( end_global_header_stream.str( ) );
-
- // Write header file
- std::ofstream header_file( argv[ 3 ] );
+ ExpandVariables( real_classes, pre_classes, vars );
+
+ // Prepare header file
+ std::ofstream header_file( header_file_fname.c_str( ) );