frepple::CommandSave Class Reference
This command writes the complete model to an XML-file.
More...
#include <model.h>
List of all members.
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 3822 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] |
PyObject * frepple::CommandSave::executePython |
( |
PyObject * |
self, |
|
|
PyObject * |
args | |
|
) |
| | [static] |
XMLOutput::content_type frepple::CommandSave::getContent |
( |
|
) |
const [inline] |
Return the type of output.
Definition at line 3849 of file model.h.
string frepple::CommandSave::getDescription |
( |
|
) |
const [inline, virtual] |
string frepple::CommandSave::getFileName |
( |
|
) |
const [inline] |
Return the name of the output file.
Definition at line 3833 of file model.h.
string frepple::CommandSave::getHeaderAtts |
( |
|
) |
const [inline] |
Returns the attributes that are written for the root element of each XML document.
Definition at line 3875 of file model.h.
string frepple::CommandSave::getHeaderStart |
( |
|
) |
const [inline] |
Returns the string that is printed as the first line of each XML document.
Definition at line 3865 of file model.h.
void frepple::CommandSave::setContent |
( |
XMLOutput::content_type |
t |
) |
[inline] |
Update the type of output.
- See also:
- XMLOutput::content_type
Definition at line 3854 of file model.h.
void frepple::CommandSave::setFileName |
( |
const string & |
v |
) |
[inline] |
Update the name of the output file.
Definition at line 3836 of file model.h.
void frepple::CommandSave::setHeaderAtts |
( |
const string & |
s |
) |
[inline] |
Updates the attributes that are written for the root element of each XML document.
The default value is an empty string.
Definition at line 3871 of file model.h.
void frepple::CommandSave::setHeaderStart |
( |
const string & |
s |
) |
[inline] |
Updates the string that is printed as the first line of each XML document.
The default value is: <?xml version="1.0" encoding="UTF-8"?>
Definition at line 3861 of file model.h.
The documentation for this class was generated from the following files: