Index: applgrid/trunk/src/convert.cxx =================================================================== --- applgrid/trunk/src/convert.cxx (revision 0) +++ applgrid/trunk/src/convert.cxx (revision 1926) @@ -0,0 +1,66 @@ + + +#include "appl_grid/appl_grid.h" +#include "amconfig.h" + +int Usage( std::ostream& s=std::cout, int i=0 ) { + s << "Usage: applgrid-convert [options] [grid1] [grid2] ...\n"; + s << "\noption:\n"; + s << " -p | --pdf value \t record specifed pdf to the grid\n"; + s << " -i | --ipdf value \t record specifed ipdf from set to the grid\n\n"; + s << " -h | --help \t this help\n"; + s << "\nSee " << PACKAGE_URL << " for more details\n"; + s << "\nReport bugs to <" << PACKAGE_BUGREPORT << ">"; + s << std::endl; + return i; +} + + +int main( int argc, char** argv ) { + + std::vector grids; + + std::string pdf = ""; + int ipdf = 0; + + for ( int i=1 ; i " << newname << std::endl; + g.Write( newname ); + } + + return 0; +}