#include <Origin750Parser.h>
Public Member Functions | |
Origin750Parser (const string &fileName) | |
bool | parse () |
Private Member Functions | |
void | readColorMap (ColorMap &colorMap) |
void | readExcelInfo () |
void | readGraphAxisBreakInfo (GraphAxisBreak &axis_break) |
void | readGraphAxisFormatInfo (GraphAxisFormat &format) |
void | readGraphAxisInfo (GraphAxis &axis) |
void | readGraphAxisTickLabelsInfo (GraphAxisTick &tick) |
void | readGraphGridInfo (GraphGrid &grid) |
void | readGraphInfo () |
void | readMatrixInfo () |
void | readProjectTree () |
void | readProjectTreeFolder (tree< ProjectNode >::iterator parent) |
void | readSpreadInfo () |
void | readWindowProperties (Window &window, unsigned int size) |
void | skipObjectInfo () |
Private Attributes | |
iendianfstream | file |
unsigned int | objectIndex |
Origin750Parser::Origin750Parser | ( | const string & | fileName | ) |
References objectIndex.
bool Origin750Parser::parse | ( | ) | [virtual] |
Implements OriginParser.
References BOOST_LOG_, BOOST_LOG_FINALIZE, Origin::Rect::bottom, OriginParser::convertSpreadToExcel(), doubleToPosixTime(), file, OriginParser::findExcelByName(), OriginParser::findMatrixByName(), OriginParser::findSpreadByName(), OriginParser::functions, Origin::Rect::left, OriginParser::matrixes, OriginParser::notes, objectIndex, readExcelInfo(), readGraphInfo(), readMatrixInfo(), readProjectTree(), readSpreadInfo(), OriginParser::resultsLog, Origin::Rect::right, OriginParser::speadSheets, and Origin::Rect::top.
void Origin750Parser::readColorMap | ( | ColorMap & | colorMap | ) | [private] |
References file, Origin::ColorMapLevel::fillColor, Origin::ColorMapLevel::fillPattern, Origin::ColorMapLevel::fillPatternColor, Origin::ColorMapLevel::fillPatternLineWidth, Origin::ColorMapLevel::labelVisible, boost::logging::level, Origin::ColorMap::levels, Origin::ColorMapLevel::lineColor, Origin::ColorMapLevel::lineStyle, Origin::ColorMapLevel::lineVisible, and Origin::ColorMapLevel::lineWidth.
Referenced by readGraphInfo(), and readMatrixInfo().
void Origin750Parser::readExcelInfo | ( | ) | [private] |
References BOOST_LOG_, Origin::Date, Origin::Day, Origin::DecimalPlaces, OriginParser::excels, file, OriginParser::findExcelByName(), OriginParser::findExcelColumnByName(), Origin::Month, Origin::Numeric, readWindowProperties(), Origin::SignificantDigits, Origin::Text, Origin::TextNumeric, and Origin::Time.
Referenced by parse().
void Origin750Parser::readGraphAxisBreakInfo | ( | GraphAxisBreak & | axis_break | ) | [private] |
void Origin750Parser::readGraphAxisFormatInfo | ( | GraphAxisFormat & | format | ) | [private] |
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().
void Origin750Parser::readGraphAxisInfo | ( | GraphAxis & | axis | ) | [private] |
void Origin750Parser::readGraphAxisTickLabelsInfo | ( | GraphAxisTick & | tick | ) | [private] |
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().
void Origin750Parser::readGraphGridInfo | ( | GraphGrid & | grid | ) | [private] |
References Origin::GraphGrid::color, file, Origin::GraphGrid::hidden, Origin::GraphGrid::style, and Origin::GraphGrid::width.
Referenced by readGraphAxisInfo().
void Origin750Parser::readGraphInfo | ( | ) | [private] |
References Origin::Figure::attach, BOOST_LOG_, Origin::Figure::clientRect, Origin::Figure::color, file, Origin::Figure::fillAreaColor, Origin::Figure::fillAreaPattern, Origin::Figure::fillAreaPatternColor, Origin::Figure::fillAreaPatternWidth, Origin::ColorMap::fillEnabled, OriginParser::findDataByIndex(), OriginParser::graphs, boost::logging::line, Origin::None, readColorMap(), readGraphAxisBreakInfo(), readGraphAxisInfo(), readWindowProperties(), Origin::LineVertex::shapeLength, Origin::LineVertex::shapeType, Origin::LineVertex::shapeWidth, Origin::Figure::style, Origin::Figure::type, Origin::Figure::useBorderColor, Origin::Figure::width, Origin::LineVertex::x, and Origin::LineVertex::y.
Referenced by parse().
void Origin750Parser::readMatrixInfo | ( | ) | [private] |
References BOOST_LOG_, Origin::DecimalPlaces, file, OriginParser::findMatrixByName(), OriginParser::matrixes, readColorMap(), readWindowProperties(), and Origin::SignificantDigits.
Referenced by parse().
void Origin750Parser::readProjectTree | ( | ) | [private] |
void Origin750Parser::readProjectTreeFolder | ( | tree< ProjectNode >::iterator | parent | ) | [private] |
References tree< T, tree_node_allocator >::append_child(), doubleToPosixTime(), file, OriginParser::findObjectByIndex(), OriginParser::notes, and OriginParser::projectTree.
Referenced by readProjectTree().
void Origin750Parser::readSpreadInfo | ( | ) | [private] |
References BOOST_LOG_, colTypeNames, Origin::Date, Origin::Day, Origin::DecimalPlaces, file, OriginParser::findSpreadByName(), OriginParser::findSpreadColumnByName(), Origin::Month, Origin::Numeric, readWindowProperties(), Origin::SignificantDigits, OriginParser::speadSheets, Origin::Text, Origin::TextNumeric, and Origin::Time.
Referenced by parse().
void Origin750Parser::readWindowProperties | ( | Window & | window, | |
unsigned int | size | |||
) | [private] |
References BOOST_LOG_, Origin::Window::creationDate, doubleToPosixTime(), file, Origin::Window::frameRect, Origin::Window::hidden, Origin::Window::label, Origin::Window::modificationDate, Origin::Window::name, Origin::Window::objectID, objectIndex, Origin::Window::state, and Origin::Window::title.
Referenced by readExcelInfo(), readGraphInfo(), readMatrixInfo(), and readSpreadInfo().
void Origin750Parser::skipObjectInfo | ( | ) | [private] |
References file.
iendianfstream Origin750Parser::file [private] |
Referenced by parse(), readColorMap(), readExcelInfo(), readGraphAxisBreakInfo(), readGraphAxisFormatInfo(), readGraphAxisInfo(), readGraphAxisTickLabelsInfo(), readGraphGridInfo(), readGraphInfo(), readMatrixInfo(), readProjectTreeFolder(), readSpreadInfo(), readWindowProperties(), and skipObjectInfo().
unsigned int Origin750Parser::objectIndex [private] |
Referenced by Origin750Parser(), parse(), and readWindowProperties().