63 "The format used to read the input. "
64 "This action supports the formats:\n " +
inputFormats +
".\n"
67 "\" instructs Frobby to guess the format.\n"
68 "Type 'frobby help io' for more information on input formats.";
72 (
"iformat",
desc.c_str(),
79 "The format used to write the output. "
80 "This action supports the formats:\n " +
outputFormats +
".\n";
85 +
"\" instructs Frobby to use the input format.\n";
87 desc +=
"Type 'frobby help io' for more information on output formats.";
149 if (
in.getFormat() ==
164 <<
" format does not support input of "
auto_ptr< IOHandler > createIOHandler(const string &prefix)
Returns an IOHandler for the format whose name has the given prefix.
void getIOHandlerNames(vector< string > &names)
Add the name of each fomat to names.
string getFormatNameIndicatingToUseInputFormatAsOutputFormat()
Using the returned string in place of an (output) format name indicates to use the input format as th...
string getFormatNameIndicatingToGuessTheInputFormat()
Using the returned string in place of an (input) format name indicates to guess the format based on w...
string autoDetectFormat(Scanner &in)
Return the format of what in is reading based on the first non-whitespace character.
void nameFactoryRegister(NameFactory< AbstractProduct > &factory)
Registers the string returned by ConcreteProduct::getStaticName() to a function that default-construc...
The intention of this class is to describe the different kinds of mathematical structures that Frobby...
const char * getName() const
Returns the name of the structure.
bool isNull() const
Returns true if this object was returned by getNullType().
A replacement for stringstream.
A facade for input and output of mathematical objects.
void setOutputFormat(const string &format)
const string & getOutputFormat() const
void autoDetectInputFormat(Scanner &in)
If using the input format, this must be called before validating the ideals, since the auto detect fo...
IOParameters(const DataType &input, const DataType &output)
auto_ptr< IOHandler > createOutputHandler() const
auto_ptr< StringParameter > _inputFormat
const string & getInputFormat() const
void setInputFormat(const string &format)
auto_ptr< IOHandler > createInputHandler() const
auto_ptr< StringParameter > _outputFormat
const DataType & _inputType
const DataType & _outputType
void validateFormats() const
static const char * staticGetName()
void addParameter(Parameter *parameter)
This class offers an input interface which is more convenient and for some purposes more efficient th...
void reportError(const string &errorMsg)