32 # error "don't have header file for stdio"
OSOutputChannel(std::string name)
Constructor.
const OSSmartPtr< OSOutput > osoutput
bool setAllPrintLevels(ENUM_OUTPUT_LEVEL level)
Set the print level for all areas.
int AddChannel(std::string name)
Add a channel to the array outputChannel.
bool OSPrint(ENUM_OUTPUT_AREA area, ENUM_OUTPUT_LEVEL level, std::string outStr)
This is the main method to output a string All output generated by the program should ultimately use ...
int printLevel[ENUM_OUTPUT_AREA_NUMBER_OF_AREAS]
vector of integers indicating the level for each area
void flushBuffer()
Flush output buffer.
Template class for Smart Pointers.
This class handles all the output from OSSolverService, OSAmplClient and other executables derived fr...
a class that holds information about one output channel (file, device, stream, peripheral, etc.)
void OSPrintf(ENUM_OUTPUT_AREA area, ENUM_OUTPUT_LEVEL level, std::string str)
Send one string to the output device provided that the output device "accepts" the output (i...
~OSOutputChannel()
Destructor.
ENUM_OUTPUT_LEVEL
Enumeration for the different verbosity levels that can be used in producing output.
bool DeleteChannel(std::string name)
Delete a channel from the array outputChannel.
OSOutput & operator=(const OSOutput &)
FILE * file
holds a pointer to the file or device
OSOutputChannel ** outputChannel
The array of output channels currently in use.
void FlushAllBuffers()
Flush all buffers.
ENUM_OUTPUT_AREA
Enumeration for the different areas that can produce output.
bool isAccepted(ENUM_OUTPUT_AREA area, ENUM_OUTPUT_LEVEL level)
Test if the device accepts a particular combination of print level and area (i.e., if the output should be printed)
std::string Name()
Get the name of the output channel.
int FindChannel(std::string name)
Find the position of a channel within the array *outputChannel.
bool setPrintLevel(ENUM_OUTPUT_AREA area, ENUM_OUTPUT_LEVEL level)
Set the print level for a particular area.
bool SetPrintLevel(std::string name, ENUM_OUTPUT_LEVEL *level, int dim)
Modify all print levels associated with a channel.
int nOfOutputs
The number of output channels that have been defined.
std::string name
used to give a name to the file or device