Overview | Group | Tree | Graph | Index | Concepts |
You can use an instance of IloXmlReader
to read an
IloModel
or a IloSolution
in XML format.
Constructor Summary | |
---|---|
public | IloXmlReader(IloEnv, const char *) |
public | IloXmlReader(IloXmlReaderI *) |
Method Summary | |
---|---|
public void | addSerialized(IloInt) |
public void | addSolutionSerialized(IloInt) |
public IloBool | checkRttiOfObjectById(IloTypeIndex, IloExtractableI *) |
public IloBool | checkRttiOfObjectById(IloTypeIndex, IloInt) |
public IloBool | checkTypeOfObjectById(IloTypeInfo, IloInt) |
public IloBool | checkTypeOfObjectById(IloTypeInfo, IloExtractableI *) |
public void | deleteAllocatedMemory(const char *) |
public void | deleteAllocatedMemory(char *) |
public IloXmlElement * | findElement(IloXmlElement *, const char *, const char *, const char *) |
public IloXmlElement * | findElementByTag(IloXmlElement *, const char *) |
public IloInt | getChildrenCardinal(IloXmlElement *) |
public IloEnv | getEnv() |
public IloEnvI * | getEnvImpl() |
public IloXmlElement * | getFirstSubElement(IloXmlElement *) |
public IloBool | getIntAttribute(IloXmlElement *, const char *, IloInt &) |
public IloBool | getNumAttribute(IloXmlElement *, const char *, IloNum &) |
public IloAny | getObjectById(IloInt) |
public IloXmlElement * | getRoot() |
public IloIntArray * | getSerialized() |
public IloIntArray * | getSolutionSerialized() |
public IloBool | isSerialized(IloInt) |
public IloBool | isSolutionSerialized(IloInt) |
public IloBool | openDocument() |
public const char * | readAttribute(IloXmlElement *, const char *) |
public const char * | readCData(IloXmlElement *) |
public const char * | readComment(IloXmlElement *) |
public const char * | readData(IloXmlElement *) |
public const char * | readText(IloXmlElement *) |
public void | setfileName(const char *) |
public IloInt | string2Int(const char *) |
public IloIntArray | string2IntArray(const char *) |
public IloIntSet | string2IntSet(const char *) |
public IloNum | string2Num(const char *) |
public IloNumArray | string2NumArray(const char *) |
Constructor Detail |
---|
This constructor creates an IloXmlReader
object and makes
it part of the environment env
.
The fileName
is set to 0
by default.
This constructor creates an XML reader from its implementation object.
Method Detail |
---|
This member function tells the IloXmlReader
that an object
in the model has been serialized.
This member function tells the IloXmlReader
that an object
of the solution has been serialized.
This method checks the RTTI of the given object.
This method checks the RTTI of the object referenced
by the identifier Xml_Id
in the XML. This object must already
be serialized.
This method checks the TypeInfo of the object referenced by the id in the xml. This object must have been already serialized.
This method checks the TypeInfo of the given object
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 examines the XML element root
to identify the XML child element denoted by
tag
, attribute
, and value
.
This member function examines the XML element element
to identify the XML child element denoted by tag
.
This member function counts the number of child elements of the XML
element element
.
This member function gets the IloEnv
of the object.
This member function gets the implemention of the IloEnv
of
the object.
This member function gets the first child in the XML element
element
.
This member function checks the existence of attribute
in the
XML element element
and converts it to an IloInt
.
This member function checks the existence of attribute
in the
XML element element
and converts it to an IloNum
.
This member function gets the already serialized object of the given
identifier id
.
IloDiff Diff(reader.getEnv(), IloExpr((IloNumExprI*)reader.getObjectById(IdExpr1)), IloExpr((IloNumExprI*)reader.getObjectById(IdExpr2)), reader.readAttribute(element, IloXmlAttributeDef::Name));
The sample code creates a IloDiff
from a XML element
referencing its two expressions with the attributes IdRef1
and
IdRef2
.
This member function gets the XML root, that is, the XML document without the header.
This member function gets the IDs of the serialized extractables and the unique IDs of the array of extractables that were serialized from the model.
This member function gets the IDs of the serialized extractables and the unique IDs of the array of extractables that were serialized from the solution.
This member function checks wether the extractable with the ID
id
in the model has already been serialized.
This member function checks whether an object is serialized using its
getId()
method.
This member function opens the XML document specified in the constructor
or with the setFileName
method.
This member function returns the value of the attribute
in the XML element element
.
This member function reads the CDATA of the XML element
element
.
This member function returns the value of the comment in the XML
element element
.
This member function reads the data of the XML element
element
.
This member function returns the value of the text contained in the XML
element element
, independently of its origin (data or CDATA).
This member function sets fileName
as the file from which
to read the XML.
This member function converts string
into an
IloInt
.
This member function converts string
into an
IloIntArray
.
This member function converts string
into an
IloIntSet
.
This member function converts string
into an
IloNum
.
This member function converts string
into an
IloNumArray
.