liborigin 2.0.0

Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Origin750Parser Class Reference

`#include <Origin750Parser.h>`

Inheritance diagram for Origin750Parser:

## Public Member Functions
| Origin750Parser (const string &fileName)
bool | parse ()
Public Member Functions inherited from OriginParser
vector< Origin::Excel >::difference_type | findExcelByName (const string &name) const
vector< Origin::Function >::difference_type | findFunctionByName (const string &name) const
vector< Origin::Matrix >::difference_type | findMatrixByName (const string &name) const
vector< Origin::SpreadSheet >::difference_type | findSpreadByName (const string &name) const
virtual bool | parse ()=0
void | setFileVersion (unsigned int version)
virtual | ~OriginParser ()

## Protected Member Functions
time_t | doubleToPosixTime (double jdt)
virtual void | readColorMap (ColorMap &colorMap)
void | readExcelInfo ()
void | readGraphAxisBreakInfo (GraphAxisBreak &axis_break)
void | readGraphAxisFormatInfo (GraphAxisFormat &format)
unsigned int | readGraphAxisInfo (GraphAxis &axis)
void | readGraphAxisPrefixSuffixInfo (const string &sec_name, unsigned int size, GraphLayer &layer)
void | readGraphAxisTickLabelsInfo (GraphAxisTick &tick)
void | readGraphGridInfo (GraphGrid &grid)
void | readGraphInfo ()
void | readMatrixInfo ()
void | readProjectTree ()
virtual void | readProjectTreeFolder (tree< ProjectNode >::iterator parent)
void | readSpreadInfo ()
void | readWindowProperties (Window &window, unsigned int size)
void | skipLine ()
double | stringToDouble (const string &s)
Protected Member Functions inherited from OriginParser
void | convertSpreadToExcel (vector< Origin::SpreadSheet >::size_type spread)
int | findColumnByName (int spread, const string &name)
pair< string, string > | findDataByIndex (unsigned int index) const
vector< Origin::SpreadColumn >::difference_type | findExcelColumnByName (vector< Origin::Excel >::size_type excel, vector< Origin::SpreadSheet >::size_type sheet, const string &name) const
pair< Origin::ProjectNode::NodeType, string > | findObjectByIndex (unsigned int index) const
vector< Origin::SpreadColumn >::difference_type | findSpreadColumnByName (vector< Origin::SpreadSheet >::size_type spread, const string &name) const

## Protected Attributes
unsigned int | d_colormap_offset
unsigned int | d_file_size
unsigned int | d_start_offset
iendianfstream | file
FILE * | logfile
unsigned int | objectIndex

## Additional Inherited Members
Public Attributes inherited from OriginParser
vector< Origin::Excel > | excels
unsigned int | fileVersion
vector< Origin::Function > | functions
vector< Origin::Graph > | graphs
vector< Origin::Matrix > | matrixes
vector< Origin::Note > | notes
tree< Origin::ProjectNode > | projectTree
string | resultsLog
vector< Origin::SpreadSheet > | speadSheets
unsigned int | windowsCount

## Constructor & Destructor Documentation

## ◆ Origin750Parser()

Origin750Parser::Origin750Parser | ( | const string & | fileName | ) |

References d_colormap_offset, objectIndex, and OriginParser::windowsCount.

## Member Function Documentation

## ◆ doubleToPosixTime()

time_t Origin750Parser::doubleToPosixTime | ( | double | jdt | ) |
| inline protected

Referenced by parse(), Origin610Parser::readNotes(), Origin800Parser::readNotes(), readProjectTreeFolder(), Origin810Parser::readProjectTreeFolder(), and readWindowProperties().

## ◆ parse()

bool Origin750Parser::parse | ( |  | ) |
| virtual

Implements OriginParser.

Reimplemented in Origin800Parser.

References Origin::Rect::bottom, OriginParser::convertSpreadToExcel(), d_file_size, doubleToPosixTime(), file, OriginParser::findExcelByName(), OriginParser::findMatrixByName(), OriginParser::findSpreadByName(), OriginParser::functions, Origin::Rect::left, LOG_PRINT, logfile, OriginParser::matrixes, OriginParser::notes, objectIndex, readExcelInfo(), readGraphInfo(), readMatrixInfo(), readProjectTree(), readSpreadInfo(), OriginParser::resultsLog, Origin::Rect::right, OriginParser::speadSheets, and Origin::Rect::top.

## ◆ readColorMap()

void Origin750Parser::readColorMap | ( | ColorMap & | colorMap | ) |
| protected virtual

Reimplemented in Origin810Parser.

References file, Origin::ColorMapLevel::fillColor, Origin::ColorMapLevel::fillPattern, Origin::ColorMapLevel::fillPatternColor, Origin::ColorMapLevel::fillPatternLineWidth, Origin::ColorMapLevel::labelVisible, Origin::ColorMap::levels, Origin::ColorMapLevel::lineColor, Origin::ColorMapLevel::lineStyle, Origin::ColorMapLevel::lineVisible, and Origin::ColorMapLevel::lineWidth.

Referenced by Origin610Parser::readGraphInfo(), Origin700Parser::readGraphInfo(), readGraphInfo(), Origin800Parser::readGraphInfo(), Origin700Parser::readMatrixInfo(), and readMatrixInfo().

## ◆ readExcelInfo()

void Origin750Parser::readExcelInfo | ( |  | ) |
| protected

References Origin::Date, Origin::Day, Origin::DecimalPlaces, OriginParser::excels, file, OriginParser::findExcelByName(), OriginParser::findExcelColumnByName(), LOG_PRINT, logfile, Origin::Month, Origin::Numeric, readWindowProperties(), Origin::SignificantDigits, Origin::Text, Origin::TextNumeric, and Origin::Time.

Referenced by Origin610Parser::parse(), Origin700Parser::parse(), parse(), and Origin800Parser::parse().

## ◆ readGraphAxisBreakInfo()

void Origin750Parser::readGraphAxisBreakInfo | ( | GraphAxisBreak & | axis_break | ) |
| protected

References file, Origin::GraphAxisBreak::from, Origin::GraphAxisBreak::log10, Origin::GraphAxisBreak::minorTicksAfter, Origin::GraphAxisBreak::position, Origin::GraphAxisBreak::scaleIncrementAfter, Origin::GraphAxisBreak::show, and Origin::GraphAxisBreak::to.

Referenced by Origin610Parser::readGraphInfo(), Origin700Parser::readGraphInfo(), readGraphInfo(), and Origin800Parser::readGraphInfo().

## ◆ readGraphAxisFormatInfo()

void Origin750Parser::readGraphAxisFormatInfo | ( | GraphAxisFormat & | format | ) |
| protected

References Origin::GraphAxisFormat::axisPosition, Origin::GraphAxisFormat::axisPositionValue, Origin::GraphAxisFormat::color, file, Origin::GraphAxisFormat::hidden, Origin::GraphAxisFormat::majorTickLength, Origin::GraphAxisFormat::majorTicksType, Origin::GraphAxisFormat::minorTicksType, and Origin::GraphAxisFormat::thickness.

Referenced by readGraphAxisInfo().

## ◆ readGraphAxisInfo()

unsigned int Origin750Parser::readGraphAxisInfo | ( | GraphAxis & | axis | ) |
| protected

References file, Origin::GraphAxis::formatAxis, Origin::GraphAxis::majorGrid, Origin::GraphAxis::minorGrid, readGraphAxisFormatInfo(), readGraphAxisTickLabelsInfo(), readGraphGridInfo(), and Origin::GraphAxis::tickAxis.

Referenced by Origin610Parser::readGraphInfo(), Origin700Parser::readGraphInfo(), readGraphInfo(), and Origin800Parser::readGraphInfo().

## ◆ readGraphAxisPrefixSuffixInfo()

void Origin750Parser::readGraphAxisPrefixSuffixInfo | ( | const string & | sec_name,
|  | unsigned int | size,
|  | GraphLayer & | layer
| ) |  |
| protected

References file, Origin::GraphAxis::formatAxis, Origin::GraphAxisFormat::prefix, Origin::GraphAxisFormat::suffix, Origin::GraphLayer::xAxis, and Origin::GraphLayer::yAxis.

Referenced by Origin610Parser::readGraphInfo(), Origin700Parser::readGraphInfo(), and readGraphInfo().

## ◆ readGraphAxisTickLabelsInfo()

void Origin750Parser::readGraphAxisTickLabelsInfo | ( | GraphAxisTick & | tick | ) |
| protected

References Origin::Categorical, Origin::GraphAxisTick::color, Origin::ColumnHeading, Origin::GraphAxisTick::columnName, Origin::GraphAxisTick::dataName, Origin::Date, Origin::Day, Origin::GraphAxisTick::decimalPlaces, file, OriginParser::findDataByIndex(), Origin::GraphAxisTick::fontBold, Origin::GraphAxisTick::fontSize, Origin::GraphAxisTick::hidden, Origin::Month, Origin::Numeric, Origin::GraphAxisTick::rotation, Origin::Text, Origin::TickIndexedDataset, Origin::Time, Origin::GraphAxisTick::valueType, and Origin::GraphAxisTick::valueTypeSpecification.

Referenced by readGraphAxisInfo().

## ◆ readGraphGridInfo()

void Origin750Parser::readGraphGridInfo | ( | GraphGrid & | grid | ) |
| protected

References Origin::GraphGrid::color, file, Origin::GraphGrid::hidden, Origin::GraphGrid::style, and Origin::GraphGrid::width.

Referenced by readGraphAxisInfo().

## ◆ readGraphInfo()

void Origin750Parser::readGraphInfo | ( |  | ) |
| protected

References Origin::VectorProperties::angleColumnName, Origin::VectorProperties::arrowAngle, Origin::VectorProperties::arrowClosed, Origin::VectorProperties::arrowLenght, Origin::Figure::attach, Origin::Line::attach, Origin::Bitmap::attach, Origin::SurfaceProperties::backColor, Origin::SurfaceProperties::backColorEnabled, Origin::GraphLayer::backgroundColor, Origin::Line::begin, Origin::GraphLayer::bitmaps, Origin::Bitmap::borderType, Origin::GraphLayer::borderType, Origin::SurfaceProperties::bottomContour, Origin::PercentileProperties::boxCoeff, Origin::PercentileProperties::boxRange, Origin::GraphCurve::boxWidth, Origin::Figure::clientRect, Origin::Line::clientRect, Origin::Bitmap::clientRect, Origin::GraphLayer::clientRect, Origin::PieProperties::clockwiseRotation, Origin::VectorProperties::color, Origin::TextProperties::color, Origin::Figure::color, Origin::Line::color, Origin::ColorScale::colorBarThickness, Origin::SurfaceProperties::colorMap, Origin::GraphCurve::colorMap, Origin::GraphLayer::colorScale, Origin::GraphCurve::connectSymbols, Origin::VectorProperties::constAngle, Origin::VectorProperties::constMagnitude, Origin::SurfaceProperties::SurfaceColoration::contour, Origin::GraphLayer::curves, Origin::Bitmap::data, Origin::GraphCurve::dataName, Origin::PercentileProperties::diamondBox, Origin::PieProperties::displacedSectionCount, Origin::PieProperties::displacement, Origin::PieProperties::distance, Origin::Line::end, Origin::VectorProperties::endXColumnName, Origin::VectorProperties::endYColumnName, Origin::GraphLayer::figures, file, Origin::SurfaceProperties::SurfaceColoration::fill, Origin::GraphCurve::fillArea, Origin::GraphCurve::fillAreaColor, Origin::Figure::fillAreaColor, Origin::GraphCurve::fillAreaPattern, Origin::Figure::fillAreaPattern, Origin::GraphCurve::fillAreaPatternBorderColor, Origin::GraphCurve::fillAreaPatternBorderStyle, Origin::GraphCurve::fillAreaPatternBorderWidth, Origin::GraphCurve::fillAreaPatternColor, Origin::Figure::fillAreaPatternColor, Origin::GraphCurve::fillAreaPatternWidth, Origin::Figure::fillAreaPatternWidth, Origin::GraphCurve::fillAreaType, Origin::ColorMap::fillEnabled, OriginParser::findDataByIndex(), Origin::TextProperties::fontBold, Origin::TextProperties::fontItalic, Origin::TextProperties::fontSize, Origin::TextProperties::fontUnderline, Origin::PieProperties::formatAutomatic, Origin::GraphAxis::formatAxis, Origin::PieProperties::formatCategories, Origin::PieProperties::formatPercentages, Origin::PieProperties::formatValues, Origin::SurfaceProperties::frontColor, OriginParser::graphs, Origin::SurfaceProperties::gridColor, Origin::SurfaceProperties::gridLineWidth, Origin::SurfaceProperties::grids, Origin::GraphLayer::histogramBegin, Origin::GraphLayer::histogramBin, Origin::GraphLayer::histogramEnd, Origin::GraphLayer::hLine, Origin::PieProperties::horizontalOffset, Origin::GraphLayer::imageProfileTool, Origin::GraphLayer::is3D(), Origin::GraphLayer::isXYY3D, Origin::TextProperties::justify, Origin::GraphAxisFormat::label, Origin::ColorScale::labelGap, Origin::ColorScale::labelsColor, Origin::GraphLayer::legend, Origin::SurfaceProperties::SurfaceColoration::lineColor, Origin::GraphCurve::lineColor, Origin::GraphCurve::lineConnect, Origin::GraphLayer::lines, Origin::GraphCurve::lineStyle, Origin::SurfaceProperties::SurfaceColoration::lineWidth, Origin::GraphCurve::lineWidth, LOG_PRINT, logfile, Origin::VectorProperties::magnitudeColumnName, Origin::GraphAxis::majorTicks, Origin::GraphAxis::max, Origin::PercentileProperties::maxSymbolType, Origin::PercentileProperties::meanSymbolType, Origin::GraphAxis::min, Origin::GraphAxis::minorTicks, Origin::GraphAxisBreak::minorTicksBefore, Origin::PercentileProperties::minSymbolType, Origin::VectorProperties::multiplier, Origin::None, Origin::PercentileProperties::p1SymbolType, Origin::PercentileProperties::p99SymbolType, Origin::GraphLayer::percentile, Origin::GraphCurve::pie, Origin::GraphLayer::pieTexts, Origin::GraphCurve::pointOffset, Origin::VectorProperties::position, Origin::GraphAxis::position, Origin::PieProperties::positionAssociate, Origin::PieProperties::radius, readColorMap(), readGraphAxisBreakInfo(), readGraphAxisInfo(), readGraphAxisPrefixSuffixInfo(), readWindowProperties(), Origin::ColorScale::reverseOrder, Origin::PieProperties::rotation, Origin::TextProperties::rotation, Origin::GraphAxis::scale, Origin::GraphAxisBreak::scaleIncrementBefore, Origin::LineVertex::shapeLength, Origin::LineVertex::shapeType, Origin::LineVertex::shapeWidth, Origin::SurfaceProperties::sideWallEnabled, Origin::Bitmap::size, skipLine(), Origin::GraphAxis::step, Origin::Figure::style, Origin::Line::style, Origin::SurfaceProperties::surface, Origin::GraphCurve::surface, Origin::PercentileProperties::symbolColor, Origin::GraphCurve::symbolColor, Origin::PercentileProperties::symbolFillColor, Origin::GraphCurve::symbolFillColor, Origin::PercentileProperties::symbolSize, Origin::GraphCurve::symbolSize, Origin::GraphCurve::symbolThickness, Origin::GraphCurve::symbolType, Origin::GraphCurve::text, Origin::GraphLayer::texts, Origin::PieProperties::thickness, Origin::SurfaceProperties::topContour, Origin::SurfaceProperties::type, Origin::GraphCurve::type, Origin::Figure::type, Origin::Figure::useBorderColor, Origin::GraphCurve::vector, Origin::PieProperties::viewAngle, Origin::GraphLayer::vLine, Origin::PercentileProperties::whiskersCoeff, Origin::PercentileProperties::whiskersRange, Origin::TextProperties::whiteOut, Origin::VectorProperties::width, Origin::Figure::width, Origin::Line::width, Origin::LineVertex::x, Origin::GraphLayer::xAxis, Origin::GraphLayer::xAxisBreak, Origin::GraphCurve::xColumnName, Origin::GraphLayer::xLength, Origin::TextProperties::xOffset, Origin::SurfaceProperties::xSideWallColor, Origin::LineVertex::y, Origin::GraphLayer::yAxis, Origin::GraphLayer::yAxisBreak, Origin::GraphCurve::yColumnName, Origin::GraphLayer::yLength, Origin::TextProperties::yOffset, Origin::SurfaceProperties::ySideWallColor, Origin::GraphLayer::zAxis, Origin::GraphCurve::zColumnName, and Origin::GraphLayer::zLength.

Referenced by parse().

## ◆ readMatrixInfo()

void Origin750Parser::readMatrixInfo | ( |  | ) |
| protected

References Origin::DecimalPlaces, file, OriginParser::findMatrixByName(), LOG_PRINT, logfile, OriginParser::matrixes, readColorMap(), readWindowProperties(), Origin::SignificantDigits, and stringToDouble().

Referenced by parse().

## ◆ readProjectTree()

void Origin750Parser::readProjectTree | ( |  | ) |
| protected

References tree< T, tree_node_allocator >::begin(), tree< T, tree_node_allocator >::depth(), tree< T, tree_node_allocator >::end(), LOG_PRINT, logfile, OriginParser::matrixes, Origin::Window::objectID, OriginParser::projectTree, readProjectTreeFolder(), and OriginParser::windowsCount.

Referenced by Origin610Parser::parse(), Origin700Parser::parse(), parse(), and Origin800Parser::parse().

## ◆ readProjectTreeFolder()

void Origin750Parser::readProjectTreeFolder | ( | tree< ProjectNode >::iterator | parent | ) |
| protected virtual

Reimplemented in Origin810Parser.

References tree< T, tree_node_allocator >::append_child(), doubleToPosixTime(), file, OriginParser::findObjectByIndex(), OriginParser::notes, OriginParser::projectTree, readProjectTreeFolder(), and OriginParser::windowsCount.

Referenced by readProjectTree(), and readProjectTreeFolder().

## ◆ readSpreadInfo()

void Origin750Parser::readSpreadInfo | ( |  | ) |
| protected

References colTypeNames, Origin::Date, Origin::Day, Origin::DecimalPlaces, file, OriginParser::findColumnByName(), OriginParser::findSpreadByName(), OriginParser::findSpreadColumnByName(), LOG_PRINT, logfile, Origin::Month, Origin::Numeric, readWindowProperties(), Origin::SignificantDigits, OriginParser::speadSheets, Origin::Text, Origin::TextNumeric, and Origin::Time.

Referenced by parse().

## ◆ readWindowProperties()

void Origin750Parser::readWindowProperties | ( | Window & | window,
|  | unsigned int | size
| ) |  |
| protected

References Origin::Window::creationDate, doubleToPosixTime(), file, Origin::Window::frameRect, Origin::Window::hidden, Origin::Window::label, LOG_PRINT, logfile, Origin::Window::modificationDate, Origin::Window::name, Origin::Window::objectID, objectIndex, Origin::Window::state, and Origin::Window::title.

Referenced by readExcelInfo(), Origin610Parser::readGraphInfo(), Origin700Parser::readGraphInfo(), readGraphInfo(), Origin800Parser::readGraphInfo(), Origin610Parser::readMatrixInfo(), Origin700Parser::readMatrixInfo(), readMatrixInfo(), Origin800Parser::readMatrixInfo(), Origin610Parser::readSpreadInfo(), readSpreadInfo(), and Origin800Parser::readSpreadInfo().

## ◆ skipLine()

void Origin750Parser::skipLine | ( |  | ) |
| protected

References d_file_size, and file.

Referenced by Origin610Parser::readGraphInfo(), Origin700Parser::readGraphInfo(), readGraphInfo(), Origin800Parser::readGraphInfo(), Origin800Parser::readMatrixInfo(), Origin610Parser::readNotes(), Origin800Parser::readNotes(), Origin810Parser::readProjectTreeFolder(), Origin800Parser::readSpreadInfo(), and Origin800Parser::skipObjectInfo().

## ◆ stringToDouble()

double Origin750Parser::stringToDouble | ( | const string & | s | ) |
| inline protected

Referenced by Origin610Parser::readMatrixInfo(), Origin700Parser::readMatrixInfo(), readMatrixInfo(), and Origin800Parser::readMatrixInfo().

## Member Data Documentation

## ◆ d_colormap_offset

unsigned int Origin750Parser::d_colormap_offset
| protected

Referenced by Origin750Parser(), Origin800Parser::Origin800Parser(), Origin810Parser::Origin810Parser(), Origin800Parser::parse(), and Origin800Parser::readGraphInfo().

## ◆ d_file_size

unsigned int Origin750Parser::d_file_size
| protected

Referenced by Origin800Parser::findSection(), Origin800Parser::findStringPos(), Origin610Parser::parse(), Origin700Parser::parse(), parse(), Origin800Parser::parse(), Origin800Parser::readColumnInfo(), Origin610Parser::readGraphInfo(), Origin700Parser::readGraphInfo(), Origin800Parser::readGraphInfo(), Origin610Parser::readMatrixInfo(), Origin700Parser::readMatrixInfo(), Origin610Parser::readNotes(), Origin800Parser::readNotes(), Origin610Parser::readSpreadInfo(), Origin800Parser::readSpreadInfo(), skipLine(), and Origin800Parser::skipObjectInfo().

## ◆ d_start_offset

unsigned int Origin750Parser::d_start_offset
| protected

Referenced by Origin600Parser::Origin600Parser(), Origin610Parser::Origin610Parser(), Origin800Parser::Origin800Parser(), Origin810Parser::Origin810Parser(), Origin610Parser::parse(), and Origin800Parser::parse().

## ◆ file

iendianfstream Origin750Parser::file
| protected

Referenced by Origin610Parser::findObjectInfoSectionByName(), Origin800Parser::findSection(), Origin800Parser::findStringPos(), Origin610Parser::parse(), Origin700Parser::parse(), parse(), Origin800Parser::parse(), readColorMap(), Origin810Parser::readColorMap(), Origin800Parser::readColumnInfo(), readExcelInfo(), readGraphAxisBreakInfo(), readGraphAxisFormatInfo(), readGraphAxisInfo(), readGraphAxisPrefixSuffixInfo(), readGraphAxisTickLabelsInfo(), readGraphGridInfo(), Origin610Parser::readGraphInfo(), Origin700Parser::readGraphInfo(), readGraphInfo(), Origin800Parser::readGraphInfo(), Origin610Parser::readMatrixInfo(), Origin700Parser::readMatrixInfo(), readMatrixInfo(), Origin800Parser::readMatrixInfo(), Origin610Parser::readNotes(), Origin800Parser::readNotes(), readProjectTreeFolder(), Origin810Parser::readProjectTreeFolder(), Origin610Parser::readResultsLog(), Origin800Parser::readResultsLog(), Origin610Parser::readSpreadInfo(), readSpreadInfo(), Origin800Parser::readSpreadInfo(), readWindowProperties(), skipLine(), and Origin800Parser::skipObjectInfo().

## ◆ logfile

FILE* Origin750Parser::logfile
| protected

Referenced by Origin610Parser::findObjectInfoSectionByName(), Origin800Parser::findSection(), Origin800Parser::findStringPos(), Origin610Parser::parse(), Origin700Parser::parse(), parse(), Origin800Parser::parse(), Origin800Parser::readColumnInfo(), readExcelInfo(), Origin610Parser::readGraphInfo(), Origin700Parser::readGraphInfo(), readGraphInfo(), Origin800Parser::readGraphInfo(), Origin610Parser::readMatrixInfo(), Origin700Parser::readMatrixInfo(), readMatrixInfo(), Origin800Parser::readMatrixInfo(), Origin610Parser::readNotes(), Origin800Parser::readNotes(), readProjectTree(), Origin610Parser::readResultsLog(), Origin800Parser::readResultsLog(), Origin610Parser::readSpreadInfo(), readSpreadInfo(), Origin800Parser::readSpreadInfo(), readWindowProperties(), and Origin800Parser::skipObjectInfo().

## ◆ objectIndex

unsigned int Origin750Parser::objectIndex
| protected

Referenced by Origin750Parser(), parse(), Origin610Parser::readGraphInfo(), Origin610Parser::readNotes(), Origin800Parser::readNotes(), and readWindowProperties().

The documentation for this class was generated from the following files:

- /tmp/slackdce/slackrepo.5NA6jZ/build_liborigin/liborigin/Origin750Parser.h
- /tmp/slackdce/slackrepo.5NA6jZ/build_liborigin/liborigin/Origin750Parser.cpp