19 #include "OSParameters.h"
22 #include "CoinFinite.hpp"
27 using 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;
54 outStr <<
"<description>" << v->
description <<
"</description>" ;
55 if(addWhiteSpace ==
true) outStr << endl;
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 <<
"\" ";
91 outStr <<
"</enumeration>";
106 ostringstream outStr;
111 if(writeBase64 ==
false)
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;
155 if(writeBase64 ==
false)
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)
197 if(addWhiteSpace ==
true) outStr << endl;
199 outStr <<
"</basic>";
200 if(addWhiteSpace ==
true) outStr << endl;
206 if(addWhiteSpace ==
true) outStr << endl;
208 outStr <<
"</atLower>";
209 if(addWhiteSpace ==
true) outStr << endl;
215 if(addWhiteSpace ==
true) outStr << endl;
217 outStr <<
"</atUpper>";
218 if(addWhiteSpace ==
true) outStr << endl;
224 if(addWhiteSpace ==
true) outStr << endl;
226 outStr <<
"</atEquality>";
227 if(addWhiteSpace ==
true) outStr << endl;
233 if(addWhiteSpace ==
true) outStr << endl;
235 outStr <<
"</isFree>";
236 if(addWhiteSpace ==
true) outStr << endl;
242 if(addWhiteSpace ==
true) outStr << endl;
244 outStr <<
"</superbasic>";
245 if(addWhiteSpace ==
true) outStr << endl;
251 if(addWhiteSpace ==
true) outStr << endl;
253 outStr <<
"</unknown>";
254 if(addWhiteSpace ==
true) outStr << endl;
std::string writeIntVectorData(IntVector *v, bool addWhiteSpace, bool writeBase64)
Take an IntVector 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
std::string writeOtherOptionOrResultEnumeration(OtherOptionOrResultEnumeration *e, bool addWhiteSpace, bool writeBase64)
Take an OtherOptionOrResultEnumeration object and write a string that validates against the OSgL sche...
void fint fint fint real fint real real real real real real real real real * e
a double vector data structure
std::string writeBasisStatus(BasisStatus *bs, bool addWhiteSpace, bool writeBase64)
Take a BasisStatus object and write a string that validates against the OSgL schema.
int getMult(int *i, int size)
getMult
void getMultIncr(int *i, int *mult, int *incr, int size, int defaultIncr)
getMultIncr
std::string writeDblVectorData(DoubleVector *v, bool addWhiteSpace, bool writeBase64)
Take a DoubleVector object and write a string that validates against the OSgL schema.
an integer Vector data structure
static Bigint * mult(Bigint *a, Bigint *b)
std::string os_dtoa_format(double x)
std::string writeGeneralFileHeader(GeneralFileHeader *v, bool addWhiteSpace)
Take a GeneralFileHeader object and write a string that validates against the OSgL schema...
a data structure to represent an LP basis on both input and output