/home/coin/SVN-release/OS-2.4.2/OS/src/OSCommonInterfaces/OSgLWriter.cpp File Reference

#include "OSgLWriter.h"
#include "OSStringUtil.h"
#include "OSGeneral.h"
#include "OSParameters.h"
#include "OSBase64.h"
#include "OSMathUtil.h"
#include "CoinFinite.hpp"
#include <sstream>

Include dependency graph for OSgLWriter.cpp:

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.


Detailed Description

Author:
Horand Gassmann, Jun Ma, Kipp Martin,
Remarks:
Copyright (C) 2005-2011, Horand Gassmann, Jun Ma, Kipp Martin, Northwestern University, Dalhousie University and the University of Chicago. All Rights Reserved. This software is licensed under the Eclipse Public License. Please see the accompanying LICENSE file in root directory for terms.

Definition in file OSgLWriter.cpp.


Function Documentation

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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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().


Generated on Wed Nov 30 03:10:03 2011 by  doxygen 1.4.7