#include "OSGeneral.h"
#include "OSiLWriter.h"
#include "OSInstance.h"
#include "OSParameters.h"
#include "OSBase64.h"
#include "OSMathUtil.h"
#include <string>
#include <sstream>
Include dependency graph for OSgLWriter.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Functions | |
std::string | writeIntVectorData (IntVector *v, bool addWhiteSpace, bool writeBase64) |
Take an IntVector object and write a string that validates against the OSgL schema.Take a DoubleVector object and write a string that validates against the OSgL schema.Take a BasisStatus object and write a string that validates against the OSgL schema.Take an IntVector object and write a string that validates against the OSgL schema. | |
std::string | writeGeneralFileHeader (GeneralFileHeader *v, bool addWhiteSpace) |
Take a GeneralFileHeader object and write a string that validates against the OSgL schema. | |
std::string | writeOtherOptionEnumeration (OtherOptionEnumeration *e, bool addWhiteSpace, bool writeBase64) |
Take an OtherOptionEnumeration 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 | writeBasisStatus (BasisStatus *bs, bool addWhiteSpace, bool writeBase64) |
Take a BasisStatus object and write a string that validates against the OSgL schema. |
Definition in file OSgLWriter.h.
std::string writeIntVectorData | ( | IntVector * | v, | |
bool | addWhiteSpace, | |||
bool | writeBase64 | |||
) |
Take an IntVector object and write a string that validates against the OSgL schema.Take a DoubleVector object and write a string that validates against the OSgL schema.Take a BasisStatus object and write a string that validates against the OSgL schema.Take an IntVector object and write a string that validates against the OSgL schema.
v | is the IntVector to be output | |
addWhiteSpace | controls whether whitespace (i.e., line feed) is to be added | |
writeBase64 | controls whether the IntVector is to be output in base64 format or as a sequence of <el> (including mult and incr attributes) |
Definition at line 41 of file OSgLWriter.cpp.
References IntVector::el, Base64::encodeb64(), getMultIncr(), mult(), and IntVector::numberOfEl.
Referenced by writeBasisStatus(), and writeOtherOptionEnumeration().
std::string writeGeneralFileHeader | ( | GeneralFileHeader * | v, | |
bool | addWhiteSpace | |||
) |
Take a GeneralFileHeader object and write a string that validates against the OSgL schema.
v | is the object to be output | |
addWhiteSpace | controls whether whitespace (i.e., line feed) is to be added |
Definition at line 82 of file OSgLWriter.cpp.
References GeneralFileHeader::description, GeneralFileHeader::fileCreator, GeneralFileHeader::licence, GeneralFileHeader::name, and GeneralFileHeader::source.
Referenced by OSoLWriter::writeOSoL(), and OSrLWriter::writeOSrL().
std::string writeOtherOptionEnumeration | ( | OtherOptionEnumeration * | e, | |
bool | addWhiteSpace, | |||
bool | writeBase64 | |||
) |
Take an OtherOptionEnumeration object and write a string that validates against the OSgL schema.
e | is the OtherOptionEnumeration to be output | |
addWhiteSpace | controls whether whitespace (i.e., line feed) is to be added | |
writeBase64 | controls whether the embedded integer array is to be output in base64 format or as a sequence of <el> (including mult and incr attributes) |
Definition at line 127 of file OSgLWriter.cpp.
References e, and writeIntVectorData().
std::string writeDblVectorData | ( | DoubleVector * | v, | |
bool | addWhiteSpace, | |||
bool | writeBase64 | |||
) |
Take a DoubleVector object and write a string that validates against the OSgL schema.
v | is the DoubleVector to be output | |
addWhiteSpace | controls whether whitespace (i.e., line feed) is to be added | |
writeBase64 | controls whether the IntVector is to be output in base64 format or as a sequence of <el> (including mult and incr attributes) |
Definition at line 151 of file OSgLWriter.cpp.
References DoubleVector::el, Base64::encodeb64(), getMult(), mult(), DoubleVector::numberOfEl, and os_dtoa_format().
std::string writeBasisStatus | ( | BasisStatus * | bs, | |
bool | addWhiteSpace, | |||
bool | writeBase64 | |||
) |
Take a BasisStatus object and write a string that validates against the OSgL schema.
bs | is the basisStatus object to be output | |
addWhiteSpace | controls whether whitespace (i.e., line feed) is to be added | |
writeBase64 | controls whether the IntVectors contained in the enumerations are to be output in base64 format or as a sequence of <el> (including mult and incr attributes) |
Definition at line 193 of file OSgLWriter.cpp.
References BasisStatus::atLower, BasisStatus::atUpper, BasisStatus::basic, BasisStatus::isFree, IntVector::numberOfEl, BasisStatus::superbasic, BasisStatus::unknown, and writeIntVectorData().