| Overview | Group | Tree | Graph | Index | Concepts |

You can use an instance of IloXmlWriter to serialize an
IloModel or an IloSolution in XML.
| Constructor Summary | |
|---|---|
public | IloXmlWriter(IloEnv env, const char * rootTag, const char * fileName=0) |
public | IloXmlWriter(IloXmlWriterI * impl) |
| Method Summary | |
|---|---|
public void | addAttribute(IloXmlElement * element, const char * attribute, const char * value) |
public void | addCData(IloXmlElement * element, const char * CData) |
public void | addComment(IloXmlElement * element, const char * comment) |
public void | addElement(IloXmlElement * element) |
public void | addSubElement(IloXmlElement * element, IloXmlElement * subElement) |
public void | addText(IloXmlElement * element, const char * text) |
public IloXmlElement * | createElement(const char * element) |
public void | deleteAllocatedMemory(const char * pointer) |
public void | deleteAllocatedMemory(char * pointer) |
public IloEnv | getEnv() |
public IloEnvI * | getEnvImpl() |
public const char * | getfileName() |
public IloXmlElement * | getRoot() |
public IloIntArray * | getSerialized() |
public IloIntArray * | getSolutionSerialized() |
public const char * | Int2String(const IloInt number) |
public const char * | IntArray2String(const IloIntArray intArray) |
public const char * | IntSet2String(const IloIntSet intSet) |
public IloBool | isSerialized(IloInt id) |
public IloBool | isSolutionSerialized(IloInt id) |
public const char * | Num2String(const IloNum number) |
public const char * | NumArray2String(const IloNumArray numArray) |
public const char * | NumSet2String(const IloNumSet numSet) |
public void | setfileName(const char * fileName) |
public IloInt | string2Int(const char * str) |
public IloBool | writeDocument() |
| Constructor Detail |
|---|
This constructor creates an IloXmlWriter object and makes
it part of the environment env.
The fileName is set to 0
by default.
This constructor creates a XML writer object from its implementation object.
| Method Detail |
|---|
This member function adds an attribute of the specified value to the XML element.
This member function adds a CDATA section to the XML element
element.
This member function adds comment to the XML element
element.
This member function adds the XML element element to the
end of the XML.
This member function adds a child element, subElement, to
the XML element element.
This member function adds text to the specified element.
This member function creates an empty element with the given tag,
element.
This member function frees the memory that has been allocated by the XML reader using, for example, the IloXmlWriter::Int2String member function.
This member function frees the memory that has been allocated by the XML reader using, for example, the IloXmlWriter::Int2String member function.
This member function gets the IloEnv of the object.
This member function gets the implementation of the IloEnv of
the object.
This member function returns the name of the XML file
This member function gets the root XML element of the XML document.
This member function gets the IDs of the serialized objects of an
IloModel.
This member function gets the IDs of the serialized objects of an
IloSolution.
This member function converts the IloInt object
number into a string, const char*.
This member function converts the IloIntArray object
intArray into a string, const char*.
This member function converts the IloIntSet object
intSet into a string, const char*.
This member function checks whether an object has been serialized.
This member function checks whether a solution object has already been serialized.
This member function converts the IloNum object
number into a string, const char*.
This member function converts the IloNumArray object
numArray into a string, const char*.
This member function converts the IloNumSet object
numSet into a string, const char*.
This member function specifies fileName as the name of
the XML file.
This member function converts str into an
IloInt.
This member function outputs the XML to the file specified in the constructor or
using the setFileName method. If null, this member function
outputs on the cout io.