5 #include <boost/filesystem/path.hpp>
7 int main( int argc, char* argv[] )
13 << "Usage: " << argv[ 0 ]
14 << " output_code namespace filter1 filter2 ..."
19 std::ofstream output_code( argv[ 1 ] );
23 << "Could not open file \"" << argv[ 1 ] << "\" for writing"
29 output_code << "#include <Pluma/Connector.hpp>" << std::endl;
30 for( int i = 3; i < argc; ++i )
31 output_code << "#include \"" << argv[ i ] << "\"" << std::endl;
34 << "PLUMA_CONNECTOR" << std::endl
35 << "bool connect( pluma::Host& host )" << std::endl
37 << " using namespace " << argv[ 2 ] << ";" << std::endl;
39 for( int i = 3; i < argc; ++i )
41 boost::filesystem::path p( argv[ i ] );
44 << p.stem( ).generic_string( )
51 << " return( true );" << std::endl