OS  2.10.2
OSiLWriter.h
Go to the documentation of this file.
1 /* $Id: OSiLWriter.h 5284 2017-12-08 13:52:50Z stefan $ */
17 #ifndef OSiLWRITER_H
18 #define OSiLWRITER_H
19 
20 #include <string>
21 #include "OSInstance.h"
22 
30 {
31 private:
35  const OSInstance *m_OSInstance;
36 public:
37 
43 
49 
57  std::string writeOSiL( const OSInstance *theosinstance);
58 
59 
60 
65 
69 
73  std::string m_sB64encoded;
74 };
75 #endif
This file defines the OSInstance class along with its supporting classes.
The in-memory representation of an OSiL instance.
Definition: OSInstance.h:2263
Take an OSInstance object and write a string that validates against the OSiL schema.
Definition: OSiLWriter.h:30
OSiLWriter()
Default constructor.
std::string m_sB64encoded
m_sB64encoded is a string of data (start, colIdx, rowIdx, or values) from linear constraints coeffici...
Definition: OSiLWriter.h:73
~OSiLWriter()
Class destructor.
std::string writeOSiL(const OSInstance *theosinstance)
create an osil string from an OSInstance object
bool m_bWriteBase64
m_bWriteBase64 is set to true if we encode the linear constraint coefficients in base64 binary
Definition: OSiLWriter.h:64
bool m_bWhiteSpace
m_bWhiteSpace is set to true if we write white space in the file
Definition: OSiLWriter.h:68