19#include "OSParameters.h"
22#include "CoinFinite.hpp"
27using std::ostringstream;
42 outStr <<
"<name>" << v->name <<
"</name>" ;
43 if(addWhiteSpace ==
true) outStr << endl;
48 outStr <<
"<source>" << v->source <<
"</source>" ;
49 if(addWhiteSpace ==
true) outStr << endl;
52 if (v->description !=
"")
54 outStr <<
"<description>" << v->description <<
"</description>" ;
55 if(addWhiteSpace ==
true) outStr << endl;
58 if (v->fileCreator !=
"")
60 outStr <<
"<fileCreator>" << v->fileCreator <<
"</fileCreator>" ;
61 if(addWhiteSpace ==
true) outStr << endl;
66 outStr <<
"<licence>" << v->licence <<
"</licence>" ;
67 if(addWhiteSpace ==
true) outStr << endl;
85 outStr <<
"<enumeration ";
86 outStr <<
"numberOfEl=\"" << e->numberOfEl <<
"\" ";
87 if (e->value !=
"") outStr <<
"value=\"" << e->value <<
"\" ";
88 if (e->description !=
"") outStr <<
"description=\"" << e->description <<
"\" ";
91 outStr <<
"</enumeration>";
106 ostringstream outStr;
109 if (v->numberOfEl > 0)
111 if(writeBase64 ==
false)
113 for(
int i = 0; i < v->numberOfEl;)
119 outStr <<
"<el mult=\"" <<
mult <<
"\">";
121 outStr <<
"<el mult=\"" <<
mult <<
"\" incr=\"" << incr <<
"\">";
124 if(addWhiteSpace ==
true) outStr << endl;
130 outStr <<
"<base64BinaryData sizeOf=\"" <<
sizeof(int) <<
"\">" ;
132 outStr <<
"</base64BinaryData>" ;
133 if(addWhiteSpace ==
true) outStr << endl;
150 ostringstream outStr;
153 if (v->numberOfEl > 0)
155 if(writeBase64 ==
false)
157 for(
int i = 0; i < v->numberOfEl;)
163 outStr <<
"<el mult=\"" <<
mult <<
"\">";
166 if(addWhiteSpace ==
true) outStr << endl;
172 outStr <<
"<base64BinaryData sizeOf=\"" <<
sizeof(double) <<
"\">" ;
174 outStr <<
"</base64BinaryData>" ;
175 if(addWhiteSpace ==
true) outStr << endl;
192 ostringstream outStr;
194 if (bs->basic != NULL)
196 outStr <<
"<basic numberOfEl=\"" << bs->basic->numberOfEl <<
"\">";
197 if(addWhiteSpace ==
true) outStr << endl;
199 outStr <<
"</basic>";
200 if(addWhiteSpace ==
true) outStr << endl;
203 if (bs->atLower != NULL)
205 outStr <<
"<atLower numberOfEl=\"" << bs->atLower->numberOfEl <<
"\">";
206 if(addWhiteSpace ==
true) outStr << endl;
208 outStr <<
"</atLower>";
209 if(addWhiteSpace ==
true) outStr << endl;
212 if (bs->atUpper != NULL)
214 outStr <<
"<atUpper numberOfEl=\"" << bs->atUpper->numberOfEl <<
"\">";
215 if(addWhiteSpace ==
true) outStr << endl;
217 outStr <<
"</atUpper>";
218 if(addWhiteSpace ==
true) outStr << endl;
221 if (bs->atEquality != NULL)
223 outStr <<
"<atEquality numberOfEl=\"" << bs->atEquality->numberOfEl <<
"\">";
224 if(addWhiteSpace ==
true) outStr << endl;
226 outStr <<
"</atEquality>";
227 if(addWhiteSpace ==
true) outStr << endl;
230 if (bs->isFree != NULL)
232 outStr <<
"<isFree numberOfEl=\"" << bs->isFree->numberOfEl <<
"\">";
233 if(addWhiteSpace ==
true) outStr << endl;
235 outStr <<
"</isFree>";
236 if(addWhiteSpace ==
true) outStr << endl;
239 if (bs->superbasic != NULL)
241 outStr <<
"<superbasic numberOfEl=\"" << bs->superbasic->numberOfEl <<
"\">";
242 if(addWhiteSpace ==
true) outStr << endl;
244 outStr <<
"</superbasic>";
245 if(addWhiteSpace ==
true) outStr << endl;
248 if (bs->unknown != NULL)
250 outStr <<
"<unknown numberOfEl=\"" << bs->unknown->numberOfEl <<
"\">";
251 if(addWhiteSpace ==
true) outStr << endl;
253 outStr <<
"</unknown>";
254 if(addWhiteSpace ==
true) outStr << endl;
std::string os_dtoa_format(double x)
void getMultIncr(int *i, int *mult, int *incr, int size, int defaultIncr)
getMultIncr
int getMult(int *i, int size)
getMult
static Bigint * mult(Bigint *a, Bigint *b)
std::string writeGeneralFileHeader(GeneralFileHeader *v, bool addWhiteSpace)
Take a GeneralFileHeader object and write a string that validates against the OSgL schema.
std::string writeIntVectorData(IntVector *v, bool addWhiteSpace, bool writeBase64)
Take an IntVector object and write a string that validates against the OSgL schema.
std::string writeDblVectorData(DoubleVector *v, bool addWhiteSpace, bool writeBase64)
Take a DoubleVector object and write a string that validates against the OSgL schema.
std::string writeOtherOptionOrResultEnumeration(OtherOptionOrResultEnumeration *e, bool addWhiteSpace, bool writeBase64)
Take an OtherOptionOrResultEnumeration object and write a string that validates against the OSgL sche...
std::string writeBasisStatus(BasisStatus *bs, bool addWhiteSpace, bool writeBase64)
Take a BasisStatus object and write a string that validates against the OSgL schema.
static std::string encodeb64(char *bytes, int size)
encode the data in base 64
a data structure to represent an LP basis on both input and output
a double vector data structure
an integer Vector data structure