TSPLIB
|
Defines the functions necessary for the IO. More...
#include <iostream>
#include <algorithm>
#include <cmath>
#include <xercesc/util/PlatformUtils.hpp>
#include <xercesc/util/XMLString.hpp>
#include <xercesc/sax2/SAX2XMLReader.hpp>
#include <xercesc/sax2/XMLReaderFactory.hpp>
#include <xercesc/util/OutOfMemoryException.hpp>
#include "ValidateConstantsFunctionsAndClasses.hpp"
#include "ValidateSAX2ErrorHandler.hpp"
#include "ValidateSAX2ContentHandler.hpp"
#include "ValidateIO.hpp"
Go to the source code of this file.
Classes | |
class | XMLStringTranscode |
Defines | |
#define | unicodeForm(str) XMLStringTranscode(str).unicodeForm() |
Functions | |
XERCES_CPP_NAMESPACE_USE std::string | parseCommandLineArguments (int argc, char *argv[]) |
Instance * | instanceIn (const std::string &inputFileName) |
Defines the functions necessary for the IO.
Defines the functions and classes necessary for the IO.
Definition in file ValidateIO.cpp.
#define unicodeForm | ( | str | ) | XMLStringTranscode(str).unicodeForm() |
Definition at line 119 of file ValidateIO.cpp.
Instance* instanceIn | ( | const std::string & | inputFileName | ) |
Reads one travelling salesman problem instance from the file inputFileName.
inputFileName | Name of the input file. |
Definition at line 121 of file ValidateIO.cpp.
References SAX2ContentHandler::getAdjacencyMatrix(), SAX2ContentHandler::getDescription(), SAX2ContentHandler::getDoublePrecision(), SAX2ErrorHandler::getFailed(), SAX2ContentHandler::getFailed(), SAX2ContentHandler::getIgnoredDigits(), SAX2ContentHandler::getName(), SAX2ContentHandler::getSource(), and VALIDATION_SCHEMA.
Referenced by main().
XERCES_CPP_NAMESPACE_USE std::string parseCommandLineArguments | ( | int | argc, |
char * | argv[] | ||
) |
Parses the command-line arguments.
argc | Number of arguments. |
argv | Arguments. |
Definition at line 33 of file ValidateIO.cpp.
References INPUT_FILE_FILENAME_EXTENSION.
Referenced by main().