frepple::CommandSave Class Reference
This command writes the complete model to an XML-file. More...
#include <model.h>
Inheritance diagram for frepple::CommandSave:

Public Member Functions | |
CommandSave (const string &v="plan.out") | |
void | execute () |
XMLOutput::content_type | getContent () const |
string | getFileName () const |
string | getHeaderAtts () const |
string | getHeaderStart () const |
void | setContent (XMLOutput::content_type t) |
void | setFileName (const string &v) |
void | setHeaderAtts (const string &s) |
void | setHeaderStart (const string &s) |
virtual | ~CommandSave () |
Static Public Member Functions | |
static PyObject * | executePython (PyObject *, PyObject *) |
Detailed Description
This command writes the complete model to an XML-file.
Both the static model (i.e. items, locations, buffers, resources, calendars, etc...) and the dynamic data (i.e. the actual plan including the operationplans, demand, problems, etc...).
The format is such that the output file can be re-read to restore the very same model.
The data is written by the execute() function.
- See also:
- CommandSavePlan
Definition at line 4426 of file model.h.
Constructor & Destructor Documentation
frepple::CommandSave::CommandSave | ( | const string & | v = "plan.out" |
) | [inline] |
virtual frepple::CommandSave::~CommandSave | ( | ) | [inline, virtual] |
Member Function Documentation
void frepple::CommandSave::execute | ( | ) | [virtual] |
Execute the command, ie write the data into XML format.
Implements frepple::utils::Command.
Definition at line 147 of file model/actions.cpp.
PyObject * frepple::CommandSave::executePython | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
Python interface to this command.
Definition at line 169 of file model/actions.cpp.
XMLOutput::content_type frepple::CommandSave::getContent | ( | ) | const [inline] |
string frepple::CommandSave::getFileName | ( | ) | const [inline] |
string frepple::CommandSave::getHeaderAtts | ( | ) | const [inline] |
string frepple::CommandSave::getHeaderStart | ( | ) | const [inline] |
void frepple::CommandSave::setContent | ( | XMLOutput::content_type | t | ) | [inline] |
void frepple::CommandSave::setFileName | ( | const string & | v | ) | [inline] |
void frepple::CommandSave::setHeaderAtts | ( | const string & | s | ) | [inline] |
void frepple::CommandSave::setHeaderStart | ( | const string & | s | ) | [inline] |
The documentation for this class was generated from the following files:
Documentation generated for frePPLe by
