Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/WorldAction/InputAction.cpp

    rce7fdc r091838  
    2222#include "CodePatterns/Log.hpp"
    2323#include "molecule.hpp"
     24#include "MoleculeListClass.hpp"
    2425#include "Parser/FormatParserStorage.hpp"
    2526#include "CodePatterns/Verbose.hpp"
     
    4344//  molecule *mol = NULL;
    4445  boost::filesystem::ifstream test;
     46  FormatParserStorage &parsers = FormatParserStorage::getInstance();
    4547
    4648  // obtain information
     
    6163#endif
    6264    DoLog(1) && (Log() << Verbose(1) << "Setting config file name prefix to " << FilenamePrefix << "." << endl);
    63     FormatParserStorage::getInstance().SetOutputPrefixForAll(FilenamePrefix);
     65    parsers.SetOutputPrefixForAll(FilenamePrefix);
    6466  } else {
    6567    DoeLog(1) && (eLog() << Verbose(1) << "Input file does not have a suffix, cannot recognize format." << endl);
     
    7173    DoLog(1) && (Log() << Verbose(1) << "Specified config file " << params.filename << " not found." << endl);
    7274    // DONT FAIL: it's just empty and we use the name. // return Action::failure;
     75    // nonetheless, add to output formats
     76    parsers.setOutputFormat( parsers.getTypeFromSuffix(FilenameSuffix) );
    7377  } else {
    7478    DoLog(1) && (Log() << Verbose(1) << "Specified config file found, parsing ... ");
     
    7680    // parse the file
    7781    test.open(params.filename);
    78     FormatParserStorage::getInstance().load(test, FilenameSuffix);
     82    parsers.load(test, FilenameSuffix);
     83    parsers.setOutputFormat( parsers.getTypeFromSuffix(FilenameSuffix) );
    7984    test.close();
    8085
Note: See TracChangeset for help on using the changeset viewer.