#include "OSConfig.h"
#include "OSParameters.h"
#include "OSReferenced.hpp"
#include "OSSmartPtr.hpp"
#include <string>
#include <vector>
Go to the source code of this file.
Classes | |
class | OSOutputChannel |
a class that holds information about one output channel (file, device, stream, peripheral, etc.) More... | |
class | OSOutput |
This class handles all the output from OSSolverService, OSAmplClient and other executables derived from them. Every output statement in the code uses methods in this class, passing information about the area that originated the request as well as the print, verbosity or severity level of the message. The message creates output only if the print level matches the user specifications. The main advantage of doing things this way is that multiple output streams can be maintained, each tailored to a specific need and containing only output that the user really wants to see. There can be as many output streams as needed; each one has an identifying name ("stdout" and "stderr" are reserved names) and an array of print levels, one for each area. The class is implemented as a Singleton, which means that two private methods must be defined in the header but must *never* be implemented: a copy constructor, and an equality operator. More... | |
Defines | |
#define | DEFAULT_OUTPUT_LEVEL ENUM_OUTPUT_LEVEL_error |
Enumerations | |
enum | ENUM_OUTPUT_LEVEL { ENUM_OUTPUT_LEVEL_always = 0, ENUM_OUTPUT_LEVEL_error, ENUM_OUTPUT_LEVEL_summary, ENUM_OUTPUT_LEVEL_warning, ENUM_OUTPUT_LEVEL_info, ENUM_OUTPUT_LEVEL_debug, ENUM_OUTPUT_LEVEL_trace, ENUM_OUTPUT_LEVEL_detailed_trace, ENUM_OUTPUT_LEVEL_NUMBER_OF_LEVELS } |
Enumeration for the different verbosity levels that can be used in producing output. More... | |
enum | ENUM_OUTPUT_AREA { ENUM_OUTPUT_AREA_main = 0, ENUM_OUTPUT_AREA_OSAgent, ENUM_OUTPUT_AREA_Command_line_parser, ENUM_OUTPUT_AREA_OSiL_parser, ENUM_OUTPUT_AREA_OSoL_parser, ENUM_OUTPUT_AREA_OSrL_parser, ENUM_OUTPUT_AREA_OSGeneral, ENUM_OUTPUT_AREA_OSInstance, ENUM_OUTPUT_AREA_OSOption, ENUM_OUTPUT_AREA_OSResult, ENUM_OUTPUT_AREA_OSExpressionTree, ENUM_OUTPUT_AREA_OSiLwriter, ENUM_OUTPUT_AREA_OSoLwriter, ENUM_OUTPUT_AREA_OSrLwriter, ENUM_OUTPUT_AREA_OSModelInterfaces, ENUM_OUTPUT_AREA_OSSolverInterfaces, ENUM_OUTPUT_AREA_OSUtils, ENUM_OUTPUT_AREA_NUMBER_OF_AREAS } |
Enumeration for the different areas that can produce output. More... | |
Variables | |
const OSSmartPtr< OSOutput > | osoutput |
Definition in file OSOutput.h.
#define DEFAULT_OUTPUT_LEVEL ENUM_OUTPUT_LEVEL_error |
Definition at line 54 of file OSOutput.h.
enum ENUM_OUTPUT_LEVEL |
Enumeration for the different verbosity levels that can be used in producing output.
The last three levels are used only in debug mode.
Definition at line 40 of file OSOutput.h.
enum ENUM_OUTPUT_AREA |
Enumeration for the different areas that can produce output.
The last entry ENUM_OUTPUT_AREA_NUMBER_OF_AREAS gives a convenient way to count them and to allocate space
Definition at line 61 of file OSOutput.h.
const OSSmartPtr<OSOutput> osoutput |
Definition at line 39 of file OSOutput.cpp.