Frobby  0.9.5
Classes | Functions
IOHandler.h File Reference
#include <vector>

Go to the source code of this file.

Classes

class  IOHandler
 An IOHandler implements input and output for some format in such a way that client code does not need to know which format is being used. More...
 

Functions

auto_ptr< IOHandlercreateIOHandler (const string &prefix)
 Returns an IOHandler for the format whose name has the given prefix. More...
 
auto_ptr< IOHandlercreateOHandler (const string &input, const string &output)
 Returns an IOHandler for the output format. More...
 
void getIOHandlerNames (vector< string > &names)
 Add the name of each fomat to names. More...
 
void readFrobeniusInstance (Scanner &in, vector< mpz_class > &numbers)
 
string autoDetectFormat (Scanner &in)
 Return the format of what in is reading based on the first non-whitespace character. More...
 
string getFormatNameIndicatingToGuessTheInputFormat ()
 Using the returned string in place of an (input) format name indicates to guess the format based on what is being read. More...
 
string getFormatNameIndicatingToUseInputFormatAsOutputFormat ()
 Using the returned string in place of an (output) format name indicates to use the input format as the output format. More...
 

Function Documentation

◆ autoDetectFormat()

string autoDetectFormat ( Scanner in)

Return the format of what in is reading based on the first non-whitespace character.

Definition at line 198 of file IOHandler.cpp.

◆ createIOHandler()

auto_ptr<IOHandler> createIOHandler ( const string &  prefix)

Returns an IOHandler for the format whose name has the given prefix.

Definition at line 145 of file IOHandler.cpp.

◆ createOHandler()

auto_ptr<IOHandler> createOHandler ( const string &  input,
const string &  output 
)

Returns an IOHandler for the output format.

This can depend on the input format since the output name can specify to let the output format be the input format.

Definition at line 149 of file IOHandler.cpp.

◆ getFormatNameIndicatingToGuessTheInputFormat()

string getFormatNameIndicatingToGuessTheInputFormat ( )

Using the returned string in place of an (input) format name indicates to guess the format based on what is being read.

This was the shortest clear name that I could come up with.

Definition at line 234 of file IOHandler.cpp.

◆ getFormatNameIndicatingToUseInputFormatAsOutputFormat()

string getFormatNameIndicatingToUseInputFormatAsOutputFormat ( )

Using the returned string in place of an (output) format name indicates to use the input format as the output format.

This was the shortest clear name that I could come up with.

Definition at line 230 of file IOHandler.cpp.

◆ getIOHandlerNames()

void getIOHandlerNames ( vector< string > &  names)

Add the name of each fomat to names.

Definition at line 156 of file IOHandler.cpp.

◆ readFrobeniusInstance()

void readFrobeniusInstance ( Scanner in,
vector< mpz_class > &  numbers 
)

Definition at line 160 of file IOHandler.cpp.