liborigin  ..
/builddir/build/BUILD/liborigin-3.0.1/OriginAnyParser.h
Go to the documentation of this file.
1 /*
2  * OriginAnyParser.h
3  *
4  * Copyright 2017 Miquel Garriga <gbmiquel@gmail.com>
5  *
6  * This program is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  *
19  * Parser for all versions. Based mainly on Origin750Parser.h
20  */
21 #ifndef ORIGIN_ANY_PARSER_H
22 #define ORIGIN_ANY_PARSER_H
23 
24 #include "OriginParser.h"
25 #include "endianfstream.hh"
26 #include <string>
27 #include <cmath> // for floor()
28 
29 using namespace std;
30 using namespace Origin;
31 
33 {
34 public:
35  explicit OriginAnyParser(const string& fileName);
36  bool parse() override;
37 
38 protected:
39  unsigned int readObjectSize();
40  string readObjectAsString(unsigned int);
41  void readFileVersion();
42  void readGlobalHeader();
43  bool readDataSetElement();
44  bool readWindowElement();
45  bool readLayerElement();
46  unsigned int readAnnotationList();
47  bool readAnnotationElement();
48  bool readCurveElement();
49  bool readAxisBreakElement();
50  bool readAxisParameterElement(unsigned int);
51  bool readParameterElement();
52  bool readNoteElement();
53  void readProjectTree();
54  unsigned int readFolderTree(tree<ProjectNode>::iterator, unsigned int);
55  void readProjectLeaf(tree<ProjectNode>::iterator);
56  void readAttachmentList();
57  bool getColumnInfoAndData(const string&, unsigned int, const string&, unsigned int);
58  void getMatrixValues(const string&, unsigned int, short, char, char, vector<Origin::Matrix>::difference_type);
59  void getWindowProperties(Origin::Window&, const string&, unsigned int);
60  void getLayerProperties(const string&, unsigned int);
61  Origin::Color getColor(const string&);
62  void getAnnotationProperties(const string&, unsigned int, const string&, unsigned int, const string&, unsigned int, const string&, unsigned int);
63  void getCurveProperties(const string&, unsigned int, const string&, unsigned int);
64  void getAxisBreakProperties(const string&, unsigned int);
65  void getAxisParameterProperties(const string&, unsigned int, int);
66  void getNoteProperties(const string&, unsigned int, const string&, unsigned int, const string&, unsigned int);
67  void getColorMap(ColorMap&, const string&, unsigned int);
68  void getZcolorsMap(ColorMap&, const string&, unsigned int);
69  void getProjectLeafProperties(tree<ProjectNode>::iterator, const string&, unsigned int);
70  void getProjectFolderProperties(tree<ProjectNode>::iterator, const string&, unsigned int);
71  void outputProjectTree(std::ostream &);
72 
73  inline time_t doubleToPosixTime(double jdt)
74  {
75  /* 2440587.5 is julian date for the unixtime epoch */
76  return (time_t) floor((jdt - 2440587) * 86400. + 0.5);
77  }
78 
79  iendianfstream file;
80  FILE *logfile;
81 
82  streamsize d_file_size;
83  streamoff curpos;
84  unsigned int objectIndex, parseError;
85  vector<Origin::SpreadSheet>::difference_type ispread;
86  vector<Origin::Matrix>::difference_type imatrix;
87  vector<Origin::Excel>::difference_type iexcel;
88  int igraph, ilayer;
89 };
90 
91 #endif // ORIGIN_ANY_PARSER_H
Origin::Bitmap::size
unsigned long size
Definition: OriginObj.h:789
Origin::ColorMapLevel::fillPattern
unsigned char fillPattern
Definition: OriginObj.h:128
OriginFile
Definition: OriginFile.h:40
Origin::GraphCurve::symbolThickness
unsigned char symbolThickness
Definition: OriginObj.h:619
Origin::Bitmap::data
unsigned char * data
Definition: OriginObj.h:792
Origin::LineVertex
Definition: OriginObj.h:758
OriginAnyParser::OriginAnyParser
OriginAnyParser(const string &fileName)
Definition: OriginAnyParser.cpp:40
createOriginAnyParser
OriginParser * createOriginAnyParser(const string &fileName)
Definition: OriginAnyParser.cpp:176
Origin::Window::creationDate
time_t creationDate
Definition: OriginObj.h:160
Origin::GraphLayer::xLength
float xLength
Definition: OriginObj.h:875
Origin::Time
@ Time
Definition: OriginObj.h:45
OriginAnyParser::readAxisBreakElement
bool readAxisBreakElement()
Definition: OriginAnyParser.cpp:610
Origin::Function::begin
double begin
Definition: OriginObj.h:371
Origin::VectorProperties::multiplier
float multiplier
Definition: OriginObj.h:472
Origin::GraphLayer::histogramBegin
double histogramBegin
Definition: OriginObj.h:857
Origin::MatrixSheet::view
ViewType view
Definition: OriginObj.h:329
Origin::PieProperties::formatCategories
bool formatCategories
Definition: OriginObj.h:435
Origin::GraphCurve
Definition: OriginObj.h:574
OriginAnyParser::file
iendianfstream file
Definition: OriginAnyParser.h:79
Origin::GraphAxisFormat::prefix
string prefix
Definition: OriginObj.h:687
Origin::ColorMapLevel::lineColor
Color lineColor
Definition: OriginObj.h:133
Origin::MatrixSheet::decimalPlaces
int decimalPlaces
Definition: OriginObj.h:324
Origin::LineVertex::x
double x
Definition: OriginObj.h:762
Origin::Window::windowBackgroundColorEnd
Color windowBackgroundColorEnd
Definition: OriginObj.h:164
Origin::Figure::color
Color color
Definition: OriginObj.h:733
Origin::GraphGrid::color
unsigned char color
Definition: OriginObj.h:671
Origin::Color::starting
unsigned char starting
Definition: OriginObj.h:89
Origin::GraphAxisBreak::position
double position
Definition: OriginObj.h:647
Origin::SpreadColumn::type
ColumnType type
Definition: OriginObj.h:251
Origin::MatrixSheet
Definition: OriginObj.h:316
Origin::GraphCurve::fillAreaPattern
unsigned char fillAreaPattern
Definition: OriginObj.h:603
Origin::GraphAxisTick::columnName
string columnName
Definition: OriginObj.h:702
Origin::GraphCurve::zColumnName
string zColumnName
Definition: OriginObj.h:593
Origin::VectorProperties::magnitudeColumnName
string magnitudeColumnName
Definition: OriginObj.h:471
GET_SHORT
#define GET_SHORT(iss, ovalue)
Definition: OriginAnyParser.cpp:28
Origin::GraphLayer::legend
TextBox legend
Definition: OriginObj.h:844
Origin::ColorGradientDirection
ColorGradientDirection
Definition: OriginObj.h:75
OriginFile::matrixCount
vector< Origin::Matrix >::size_type matrixCount() const
get number of matrices
Definition: OriginFile.cpp:219
OriginFile::spreadCount
vector< Origin::SpreadSheet >::size_type spreadCount() const
get number of spreadsheets
Definition: OriginFile.cpp:209
Origin::variant
class Origin::Variant variant
Origin::GraphAxis::minorTicks
unsigned char minorTicks
Definition: OriginObj.h:718
Origin::GraphAxis::formatAxis
GraphAxisFormat formatAxis[2]
Definition: OriginObj.h:722
Origin::Line::style
unsigned char style
Definition: OriginObj.h:780
Origin::PieProperties::rotation
short rotation
Definition: OriginObj.h:425
Origin::VectorProperties::constMagnitude
int constMagnitude
Definition: OriginObj.h:474
Origin::Figure
Definition: OriginObj.h:727
Origin::Line
Definition: OriginObj.h:775
Origin::GraphLayer::zAxis
GraphAxis zAxis
Definition: OriginObj.h:850
Origin::SpreadSheet
Definition: OriginObj.h:287
Origin::Rect::left
short left
Definition: OriginObj.h:96
OriginAnyParser::readProjectLeaf
void readProjectLeaf(tree< ProjectNode >::iterator)
Definition: OriginAnyParser.cpp:839
Origin::GraphCurve::lineTransparency
unsigned char lineTransparency
Definition: OriginObj.h:595
Origin::PieProperties::displacedSectionCount
unsigned long displacedSectionCount
Definition: OriginObj.h:428
OriginAnyParser::objectIndex
unsigned int objectIndex
Definition: OriginAnyParser.h:84
Origin::PieProperties::horizontalOffset
unsigned short horizontalOffset
Definition: OriginObj.h:427
Origin::GraphLayer::zAngle
float zAngle
Definition: OriginObj.h:873
OriginAnyParser::logfile
FILE * logfile
Definition: OriginAnyParser.h:80
Origin::GraphLayer::exchangedAxes
bool exchangedAxes
Definition: OriginObj.h:888
Origin::Line::width
double width
Definition: OriginObj.h:779
Origin::MatrixSheet::rowCount
unsigned short rowCount
Definition: OriginObj.h:320
Origin::Attach
Attach
Definition: OriginObj.h:70
Origin::GraphLayer::xAxisBreak
GraphAxisBreak xAxisBreak
Definition: OriginObj.h:852
Origin::SpreadColumn::name
string name
Definition: OriginObj.h:249
Origin::GraphLayer::isWaterfall
bool isWaterfall
Definition: OriginObj.h:883
Origin::TickIndexedDataset
@ TickIndexedDataset
Definition: OriginObj.h:45
OriginAnyParser::readDataSetElement
bool readDataSetElement()
Definition: OriginAnyParser.cpp:274
Origin::GraphAxisFormat::color
unsigned char color
Definition: OriginObj.h:679
Origin::GraphAxis::oppositeLine
bool oppositeLine
Definition: OriginObj.h:713
OriginAnyParser::readObjectAsString
string readObjectAsString(unsigned int)
Definition: OriginAnyParser.cpp:196
OriginAnyParser::igraph
int igraph
Definition: OriginAnyParser.h:88
Origin::BorderType
BorderType
Definition: OriginObj.h:71
Origin::Window::title
Title title
Definition: OriginObj.h:158
Origin::SurfaceProperties::grids
Grids grids
Definition: OriginObj.h:520
Origin::GraphAxis::min
double min
Definition: OriginObj.h:714
Origin::GraphAxisFormat::majorTicksType
int majorTicksType
Definition: OriginObj.h:682
Origin::GraphAxisBreak::show
bool show
Definition: OriginObj.h:642
Origin::GraphGrid::width
double width
Definition: OriginObj.h:673
Origin::GraphLayer::borderType
BorderType borderType
Definition: OriginObj.h:846
OriginAnyParser::readAnnotationList
unsigned int readAnnotationList()
Definition: OriginAnyParser.cpp:476
OriginAnyParser::getColumnInfoAndData
bool getColumnInfoAndData(const string &, unsigned int, const string &, unsigned int)
Definition: OriginAnyParser.cpp:956
OriginAnyParser.h
OriginParser::resultsLog
string resultsLog
Definition: OriginParser.h:73
Origin::VectorProperties::arrowLength
unsigned short arrowLength
Definition: OriginObj.h:463
Origin::Figure::fillAreaPattern
unsigned char fillAreaPattern
Definition: OriginObj.h:737
Origin::SurfaceProperties::xSideWallColor
Color xSideWallColor
Definition: OriginObj.h:529
Origin::GraphAxisTick::showMajorLabels
bool showMajorLabels
Definition: OriginObj.h:694
Origin::GraphAxisBreak::log10
bool log10
Definition: OriginObj.h:644
OriginAnyParser::d_file_size
streamsize d_file_size
Definition: OriginAnyParser.h:82
Origin::SpreadSheet::maxRows
unsigned int maxRows
Definition: OriginObj.h:288
OriginAnyParser::readAxisParameterElement
bool readAxisParameterElement(unsigned int)
Definition: OriginAnyParser.cpp:635
Origin::Categorical
@ Categorical
Definition: OriginObj.h:45
OriginAnyParser::parse
bool parse() override
Definition: OriginAnyParser.cpp:54
set
fexceptions Wall Wextra pedantic set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -pedantic") endif() configure_file(config.h.in $
Definition: CMakeLists.txt:28
Origin::GraphCurve::symbolFillTransparency
unsigned char symbolFillTransparency
Definition: OriginObj.h:617
Origin::GraphAxis::scale
unsigned char scale
Definition: OriginObj.h:719
Origin::GraphAxisBreak::minorTicksAfter
unsigned char minorTicksAfter
Definition: OriginObj.h:653
Origin::Matrix
Definition: OriginObj.h:350
Origin::PercentileProperties::symbolFillColor
Color symbolFillColor
Definition: OriginObj.h:547
Origin::GraphCurve::symbolShape
unsigned char symbolShape
Definition: OriginObj.h:614
GET_DOUBLE
#define GET_DOUBLE(iss, ovalue)
Definition: OriginAnyParser.cpp:31
Origin::GraphLayer::yAngle
float yAngle
Definition: OriginObj.h:872
Origin::VectorProperties::width
double width
Definition: OriginObj.h:462
Origin::SurfaceProperties::ySideWallColor
Color ySideWallColor
Definition: OriginObj.h:530
OriginAnyParser::readLayerElement
bool readLayerElement()
Definition: OriginAnyParser.cpp:389
Origin::GraphAxis::max
double max
Definition: OriginObj.h:715
Origin::Date
@ Date
Definition: OriginObj.h:45
Origin::Color::column
unsigned char column
Definition: OriginObj.h:90
Origin::GraphCurve::fillAreaPatternBorderWidth
double fillAreaPatternBorderWidth
Definition: OriginObj.h:611
Origin::PercentileProperties::p1SymbolType
unsigned char p1SymbolType
Definition: OriginObj.h:544
OriginAnyParser::readParameterElement
bool readParameterElement()
Definition: OriginAnyParser.cpp:660
Origin::Color
Definition: OriginObj.h:78
Origin::SurfaceProperties::SurfaceColoration::contour
bool contour
Definition: OriginObj.h:511
Origin::SurfaceProperties::gridLineWidth
double gridLineWidth
Definition: OriginObj.h:521
Origin::Color::RGB
@ RGB
Definition: OriginObj.h:79
OriginAnyParser::getProjectFolderProperties
void getProjectFolderProperties(tree< ProjectNode >::iterator, const string &, unsigned int)
Definition: OriginAnyParser.cpp:2978
OriginParser::spreadSheets
vector< Origin::SpreadSheet > spreadSheets
Definition: OriginParser.h:66
Origin::SurfaceProperties::bottomContour
SurfaceColoration bottomContour
Definition: OriginObj.h:534
Origin::PercentileProperties::maxSymbolType
unsigned char maxSymbolType
Definition: OriginObj.h:541
Origin::Rect::bottom
short bottom
Definition: OriginObj.h:99
OriginAnyParser::parseError
unsigned int parseError
Definition: OriginAnyParser.h:84
Origin::GraphCurve::fillAreaWithLineTransparency
bool fillAreaWithLineTransparency
Definition: OriginObj.h:606
Origin::Graph
Definition: OriginObj.h:957
Origin::TextProperties::whiteOut
bool whiteOut
Definition: OriginObj.h:497
Origin::PieProperties::viewAngle
unsigned char viewAngle
Definition: OriginObj.h:422
Origin::GraphCurve::symbolInterior
unsigned char symbolInterior
Definition: OriginObj.h:613
Origin::SurfaceProperties::surface
SurfaceColoration surface
Definition: OriginObj.h:532
Origin::GraphAxisBreak::from
double from
Definition: OriginObj.h:645
OriginParser::datasets
vector< Origin::SpreadColumn > datasets
Definition: OriginParser.h:65
Origin::PercentileProperties::whiskersCoeff
double whiskersCoeff
Definition: OriginObj.h:552
Origin::MatrixSheet::coordinates
vector< double > coordinates
Definition: OriginObj.h:332
Origin::Window::hidden
bool hidden
Definition: OriginObj.h:156
OriginAnyParser::readFolderTree
unsigned int readFolderTree(tree< ProjectNode >::iterator, unsigned int)
Definition: OriginAnyParser.cpp:768
Origin::GraphLayer::xAngle
float xAngle
Definition: OriginObj.h:871
Origin::GraphCurve::xDataName
string xDataName
Definition: OriginObj.h:590
Origin::Month
@ Month
Definition: OriginObj.h:45
_ONAN
#define _ONAN
Definition: OriginObj.h:41
GET_INT
#define GET_INT(iss, ovalue)
Definition: OriginAnyParser.cpp:29
Origin::LineVertex::shapeLength
double shapeLength
Definition: OriginObj.h:761
Origin::Window::windowBackgroundColorBase
Color windowBackgroundColorBase
Definition: OriginObj.h:163
Origin::Color::regular
unsigned char regular
Definition: OriginObj.h:87
Origin::GraphLayer::xAxis
GraphAxis xAxis
Definition: OriginObj.h:848
OriginAnyParser::ilayer
int ilayer
Definition: OriginAnyParser.h:88
Origin::PieProperties::formatValues
bool formatValues
Definition: OriginObj.h:433
Origin::PieProperties::formatPercentages
bool formatPercentages
Definition: OriginObj.h:434
Origin::Window::frameRect
Rect frameRect
Definition: OriginObj.h:159
Origin::Figure::fillAreaColor
Color fillAreaColor
Definition: OriginObj.h:736
OriginAnyParser::iexcel
vector< Origin::Excel >::difference_type iexcel
Definition: OriginAnyParser.h:87
Origin::GraphLayer::colorMap
ColorMap colorMap
Definition: OriginObj.h:862
Origin::GraphLayer
Definition: OriginObj.h:842
Origin::GraphLayer::curves
vector< GraphCurve > curves
Definition: OriginObj.h:869
Origin::VectorProperties::endYColumnName
string endYColumnName
Definition: OriginObj.h:467
Origin::Color::Indexing
@ Indexing
Definition: OriginObj.h:79
Origin::Function::end
double end
Definition: OriginObj.h:372
Origin::Line::attach
Attach attach
Definition: OriginObj.h:778
Origin::GraphAxisFormat::majorTickLength
double majorTickLength
Definition: OriginObj.h:681
OriginAnyParser::readGlobalHeader
void readGlobalHeader()
Definition: OriginAnyParser.cpp:236
Origin::ColorScale::colorBarThickness
unsigned short colorBarThickness
Definition: OriginObj.h:830
Origin::GraphAxisTick::color
unsigned char color
Definition: OriginObj.h:695
OriginFile::excelCount
vector< Origin::Excel >::size_type excelCount() const
get number of excels
Definition: OriginFile.cpp:264
Origin::TextProperties::yOffset
short yOffset
Definition: OriginObj.h:502
Origin::GraphAxisTick::valueType
ValueType valueType
Definition: OriginObj.h:696
Origin::ColorMap::fillEnabled
bool fillEnabled
Definition: OriginObj.h:144
Origin::ColorMapLevel::fillPatternLineWidth
double fillPatternLineWidth
Definition: OriginObj.h:130
Origin::GraphAxis::majorGrid
GraphGrid majorGrid
Definition: OriginObj.h:720
Origin
Definition: OriginObj.h:44
Origin::Color::Regular
@ Regular
Definition: OriginObj.h:79
Origin::PercentileProperties::boxRange
unsigned char boxRange
Definition: OriginObj.h:549
Origin::GraphCurve::lineColor
Color lineColor
Definition: OriginObj.h:594
OriginParser::projectTree
tree< Origin::ProjectNode > projectTree
Definition: OriginParser.h:72
Origin::ColorMap::levels
ColorMapVector levels
Definition: OriginObj.h:145
main
int main(int argc, char *argv[])
Definition: opj2dat.cpp:39
OriginAnyParser::imatrix
vector< Origin::Matrix >::difference_type imatrix
Definition: OriginAnyParser.h:86
Origin::GraphAxisBreak::to
double to
Definition: OriginObj.h:646
Origin::MatrixSheet::name
string name
Definition: OriginObj.h:319
Origin::GraphAxisTick::dataName
string dataName
Definition: OriginObj.h:701
Origin::PieProperties::distance
unsigned short distance
Definition: OriginObj.h:437
Origin::Function
Definition: OriginObj.h:365
Origin::GraphAxisBreak::scaleIncrementBefore
double scaleIncrementBefore
Definition: OriginObj.h:649
Origin::SurfaceProperties::SurfaceColoration::fill
bool fill
Definition: OriginObj.h:510
Origin::NoGradient
@ NoGradient
Definition: OriginObj.h:75
Origin::GraphLayer::gridOnTop
bool gridOnTop
Definition: OriginObj.h:887
Origin::GraphLayer::imageProfileTool
int imageProfileTool
Definition: OriginObj.h:879
Origin::MatrixSheet::width
unsigned short width
Definition: OriginObj.h:327
Origin::PercentileProperties::minSymbolType
unsigned char minSymbolType
Definition: OriginObj.h:545
Origin::Color::Automatic
@ Automatic
Definition: OriginObj.h:79
Origin::SpreadSheet::columns
vector< SpreadColumn > columns
Definition: OriginObj.h:291
Origin::GraphAxisTick::fontSize
unsigned short fontSize
Definition: OriginObj.h:699
Origin::Numeric
@ Numeric
Definition: OriginObj.h:45
Origin::GraphCurve::fillAreaPatternBorderColor
Color fillAreaPatternBorderColor
Definition: OriginObj.h:610
OriginAnyParser::outputProjectTree
void outputProjectTree(std::ostream &)
Definition: OriginAnyParser.cpp:2994
OriginParser::graphs
vector< Origin::Graph > graphs
Definition: OriginParser.h:70
Origin::GraphGrid::style
unsigned char style
Definition: OriginObj.h:672
Origin::GraphCurve::colorMap
ColorMap colorMap
Definition: OriginObj.h:637
Origin::ColorMap
Definition: OriginObj.h:143
Origin::Bitmap::attach
Attach attach
Definition: OriginObj.h:788
Origin::Bottom
@ Bottom
Definition: OriginObj.h:75
Origin::GraphCurve::text
TextProperties text
Definition: OriginObj.h:631
Origin::GraphAxisFormat::factor
string factor
Definition: OriginObj.h:689
OriginAnyParser::getLayerProperties
void getLayerProperties(const string &, unsigned int)
Definition: OriginAnyParser.cpp:1347
Origin::GraphCurve::lineConnect
unsigned char lineConnect
Definition: OriginObj.h:597
Origin::PercentileProperties::whiskersRange
unsigned char whiskersRange
Definition: OriginObj.h:550
Origin::GraphLayer::backgroundColor
Color backgroundColor
Definition: OriginObj.h:845
Origin::GraphAxis::step
double step
Definition: OriginObj.h:716
Origin::Top
@ Top
Definition: OriginObj.h:75
Origin::GraphLayer::yOffset
int yOffset
Definition: OriginObj.h:885
Origin::Window::name
string name
Definition: OriginObj.h:153
Origin::GraphAxisFormat::axisPositionValue
double axisPositionValue
Definition: OriginObj.h:685
Origin::GraphAxisBreak::scaleIncrementAfter
double scaleIncrementAfter
Definition: OriginObj.h:650
Origin::Color::Mapping
@ Mapping
Definition: OriginObj.h:79
Origin::GraphLayer::bitmaps
vector< Bitmap > bitmaps
Definition: OriginObj.h:868
Origin::GraphAxis
Definition: OriginObj.h:707
Origin::PercentileProperties::symbolSize
unsigned short symbolSize
Definition: OriginObj.h:548
Origin::Rect::right
short right
Definition: OriginObj.h:98
Origin::GraphCurve::hidden
bool hidden
Definition: OriginObj.h:587
Origin::Window::windowBackgroundColorGradient
ColorGradientDirection windowBackgroundColorGradient
Definition: OriginObj.h:162
Origin::GraphCurve::fillAreaColor
Color fillAreaColor
Definition: OriginObj.h:604
Origin::GraphCurve::xColumnName
string xColumnName
Definition: OriginObj.h:591
Origin::Text
@ Text
Definition: OriginObj.h:45
Origin::VectorProperties::position
VectorPosition position
Definition: OriginObj.h:469
OriginAnyParser::getAxisBreakProperties
void getAxisBreakProperties(const string &, unsigned int)
Definition: OriginAnyParser.cpp:2476
Origin::TextProperties::fontBold
bool fontBold
Definition: OriginObj.h:494
Origin::TextProperties::fontUnderline
bool fontUnderline
Definition: OriginObj.h:496
Origin::ColorMapLevel::fillColor
Color fillColor
Definition: OriginObj.h:127
Origin::Color::None
@ None
Definition: OriginObj.h:79
OriginAnyParser::curpos
streamoff curpos
Definition: OriginAnyParser.h:83
Origin::GraphAxisTick::fontBold
bool fontBold
Definition: OriginObj.h:700
Origin::GraphAxisFormat::axisPosition
int axisPosition
Definition: OriginObj.h:684
OriginFile::spread
Origin::SpreadSheet & spread(vector< Origin::SpreadSheet >::size_type s) const
get spreadsheet s
Definition: OriginFile.cpp:214
Origin::GraphLayer::colorScale
ColorScale colorScale
Definition: OriginObj.h:861
Origin::Function::name
string name
Definition: OriginObj.h:368
Origin::Figure::type
FigureType type
Definition: OriginObj.h:730
Origin::SurfaceProperties::backColor
Color backColor
Definition: OriginObj.h:526
Origin::GraphCurve::lineStyle
unsigned char lineStyle
Definition: OriginObj.h:596
OriginAnyParser::readProjectTree
void readProjectTree()
Definition: OriginAnyParser.cpp:734
Origin::GraphLayer::orthographic3D
bool orthographic3D
Definition: OriginObj.h:890
Origin::DecimalPlaces
@ DecimalPlaces
Definition: OriginObj.h:69
Origin::LineVertex::shapeType
unsigned char shapeType
Definition: OriginObj.h:759
OriginParser
Definition: OriginParser.h:42
OriginAnyParser::getColor
Origin::Color getColor(const string &)
Definition: OriginAnyParser.cpp:1439
Origin::GraphLayer::vLine
double vLine
Definition: OriginObj.h:880
Origin::ColumnHeading
@ ColumnHeading
Definition: OriginObj.h:45
Origin::GraphCurve::vector
VectorProperties vector
Definition: OriginObj.h:628
Origin::GraphAxis::majorTicks
unsigned char majorTicks
Definition: OriginObj.h:717
Origin::GraphAxisFormat::label
TextBox label
Definition: OriginObj.h:686
Origin::PercentileProperties::labels
unsigned char labels
Definition: OriginObj.h:554
Origin::GraphCurve::surface
SurfaceProperties surface
Definition: OriginObj.h:634
OriginParser::findColumnByName
int findColumnByName(int spread, const string &name)
Definition: OriginParser.cpp:237
OriginAnyParser::getNoteProperties
void getNoteProperties(const string &, unsigned int, const string &, unsigned int, const string &, unsigned int)
Definition: OriginAnyParser.cpp:2748
Origin::GraphLayer::histogramBin
double histogramBin
Definition: OriginObj.h:856
Origin::GraphCurve::symbolFillColor
Color symbolFillColor
Definition: OriginObj.h:616
Origin::ColorMapLevel::fillPatternColor
Color fillPatternColor
Definition: OriginObj.h:129
Origin::Function::type
FunctionType type
Definition: OriginObj.h:369
Origin::Center
@ Center
Definition: OriginObj.h:75
OriginAnyParser::readFileVersion
void readFileVersion()
Definition: OriginAnyParser.cpp:218
Origin::SurfaceProperties::SurfaceColoration::lineColor
Color lineColor
Definition: OriginObj.h:512
Origin::Figure::width
double width
Definition: OriginObj.h:735
Origin::GraphAxis::position
AxisPosition position
Definition: OriginObj.h:711
OriginParser::windowsCount
unsigned int windowsCount
Definition: OriginParser.h:74
Origin::VectorProperties::arrowClosed
bool arrowClosed
Definition: OriginObj.h:465
Origin::ColorScale::labelGap
unsigned short labelGap
Definition: OriginObj.h:829
Origin::GraphCurve::fillAreaPatternColor
Color fillAreaPatternColor
Definition: OriginObj.h:607
Origin::GraphCurve::fillAreaType
unsigned char fillAreaType
Definition: OriginObj.h:602
Origin::ColorScale::visible
bool visible
Definition: OriginObj.h:827
Origin::Frame
@ Frame
Definition: OriginObj.h:70
OriginParser.h
Origin::GraphCurve::pointOffset
unsigned char pointOffset
Definition: OriginObj.h:620
LOG_PRINT
#define LOG_PRINT(logfile,...)
Definition: OriginParser.h:38
Origin::PercentileProperties::p99SymbolType
unsigned char p99SymbolType
Definition: OriginObj.h:542
Origin::MatrixSheet::colorMap
ColorMap colorMap
Definition: OriginObj.h:330
OriginAnyParser::getAxisParameterProperties
void getAxisParameterProperties(const string &, unsigned int, int)
Definition: OriginAnyParser.cpp:2521
Origin::Function::formula
string formula
Definition: OriginObj.h:370
Origin::VectorProperties::constAngle
int constAngle
Definition: OriginObj.h:473
Origin::Window::state
State state
Definition: OriginObj.h:157
Origin::TextProperties::fontSize
unsigned short fontSize
Definition: OriginObj.h:503
Origin::ColorMapLevel
Definition: OriginObj.h:126
Origin::GraphLayer::histogramEnd
double histogramEnd
Definition: OriginObj.h:858
Origin::GraphLayer::percentile
PercentileProperties percentile
Definition: OriginObj.h:860
Origin::ValueType
ValueType
Definition: OriginObj.h:45
OriginAnyParser::readAttachmentList
void readAttachmentList()
Definition: OriginAnyParser.cpp:862
OriginAnyParser::getProjectLeafProperties
void getProjectLeafProperties(tree< ProjectNode >::iterator, const string &, unsigned int)
Definition: OriginAnyParser.cpp:2953
Origin::Color::Custom
@ Custom
Definition: OriginObj.h:79
Origin::VectorProperties::endXColumnName
string endXColumnName
Definition: OriginObj.h:466
Origin::ColorScale::reverseOrder
bool reverseOrder
Definition: OriginObj.h:828
Origin::GraphLayer::yLength
float yLength
Definition: OriginObj.h:876
Origin::GraphCurve::boxWidth
unsigned char boxWidth
Definition: OriginObj.h:598
Origin::GraphLayer::is3D
bool is3D() const
Definition: OriginObj.h:919
OriginAnyParser::readNoteElement
bool readNoteElement()
Definition: OriginAnyParser.cpp:690
Origin::ColorMapLevel::labelVisible
bool labelVisible
Definition: OriginObj.h:137
Origin::TextProperties::xOffset
short xOffset
Definition: OriginObj.h:501
Origin::GraphAxisFormat::suffix
string suffix
Definition: OriginObj.h:688
Origin::Rect
Definition: OriginObj.h:95
Origin::MatrixSheet::significantDigits
int significantDigits
Definition: OriginObj.h:323
Origin::Day
@ Day
Definition: OriginObj.h:45
Origin::Bitmap::borderType
BorderType borderType
Definition: OriginObj.h:791
Origin::GraphLayer::figures
vector< Figure > figures
Definition: OriginObj.h:867
Origin::Function::totalPoints
int totalPoints
Definition: OriginObj.h:373
Origin::ColorMapLevel::lineWidth
double lineWidth
Definition: OriginObj.h:135
Origin::PieProperties::formatAutomatic
bool formatAutomatic
Definition: OriginObj.h:432
OriginParser::findExcelByName
vector< Origin::Excel >::difference_type findExcelByName(const string &name) const
Definition: OriginParser.cpp:53
OriginAnyParser::readWindowElement
bool readWindowElement()
Definition: OriginAnyParser.cpp:328
OriginParser::findWindowObjectByIndex
pair< Origin::ProjectNode::NodeType, Origin::Window > findWindowObjectByIndex(unsigned int index) const
Definition: OriginParser.cpp:180
Origin::PercentileProperties::diamondBox
bool diamondBox
Definition: OriginObj.h:553
Origin::Line::clientRect
Rect clientRect
Definition: OriginObj.h:776
Origin::GraphLayer::clientRect
Rect clientRect
Definition: OriginObj.h:843
OriginAnyParser::getCurveProperties
void getCurveProperties(const string &, unsigned int, const string &, unsigned int)
Definition: OriginAnyParser.cpp:1927
Origin::SurfaceProperties::SurfaceColoration::lineWidth
double lineWidth
Definition: OriginObj.h:513
Origin::SurfaceProperties::gridColor
Color gridColor
Definition: OriginObj.h:522
OriginParser::functions
vector< Origin::Function > functions
Definition: OriginParser.h:69
Origin::GraphAxis::minorGrid
GraphGrid minorGrid
Definition: OriginObj.h:721
OriginAnyParser::ispread
vector< Origin::SpreadSheet >::difference_type ispread
Definition: OriginAnyParser.h:85
Origin::Color::type
ColorType type
Definition: OriginObj.h:84
Origin::MatrixSheet::columnCount
unsigned short columnCount
Definition: OriginObj.h:321
OriginAnyParser::getColorMap
void getColorMap(ColorMap &, const string &, unsigned int)
Definition: OriginAnyParser.cpp:2823
Origin::Line::color
Color color
Definition: OriginObj.h:777
Origin::GraphCurve::connectSymbols
bool connectSymbols
Definition: OriginObj.h:622
Origin::Rect::height
int height() const
Definition: OriginObj.h:109
Origin::GraphLayer::zLength
float zLength
Definition: OriginObj.h:877
Origin::TextProperties::rotation
short rotation
Definition: OriginObj.h:500
Origin::PieProperties::displacement
unsigned short displacement
Definition: OriginObj.h:429
Origin::PieProperties::thickness
unsigned char thickness
Definition: OriginObj.h:423
Origin::MatrixSheet::numericDisplayType
NumericDisplayType numericDisplayType
Definition: OriginObj.h:325
Origin::MatrixSheet::valueTypeSpecification
int valueTypeSpecification
Definition: OriginObj.h:322
OriginParser::findSpreadByName
vector< Origin::SpreadSheet >::difference_type findSpreadByName(const string &name) const
Definition: OriginParser.cpp:44
Origin::GraphCurve::pie
PieProperties pie
Definition: OriginObj.h:625
Origin::Window::label
string label
Definition: OriginObj.h:154
Origin::GraphCurve::symbolColor
Color symbolColor
Definition: OriginObj.h:615
Origin::GraphGrid::hidden
bool hidden
Definition: OriginObj.h:670
Origin::Rect::width
int width() const
Definition: OriginObj.h:114
Origin::Rect::top
short top
Definition: OriginObj.h:97
Origin::SignificantDigits
@ SignificantDigits
Definition: OriginObj.h:69
Origin::GraphCurve::dataName
string dataName
Definition: OriginObj.h:589
OriginParser::findDataByIndex
pair< string, string > findDataByIndex(unsigned int index) const
Definition: OriginParser.cpp:98
OriginAnyParser::getAnnotationProperties
void getAnnotationProperties(const string &, unsigned int, const string &, unsigned int, const string &, unsigned int, const string &, unsigned int)
Definition: OriginAnyParser.cpp:1493
Origin::Scale
@ Scale
Definition: OriginObj.h:70
Origin::Color::custom
unsigned char custom[3]
Definition: OriginObj.h:88
Origin::GraphLayer::texts
vector< TextBox > texts
Definition: OriginObj.h:864
Origin::GraphAxisBreak::minorTicksBefore
unsigned char minorTicksBefore
Definition: OriginObj.h:652
OriginAnyParser::getWindowProperties
void getWindowProperties(Origin::Window &, const string &, unsigned int)
Definition: OriginAnyParser.cpp:1252
Origin::GraphCurve::lineWidth
double lineWidth
Definition: OriginObj.h:599
Origin::Window
Definition: OriginObj.h:149
OriginFile::functionCount
vector< Origin::Function >::size_type functionCount() const
get number of functions
Definition: OriginFile.cpp:229
Origin::Note
Definition: OriginObj.h:977
Origin::ColorScale::labelsColor
Color labelsColor
Definition: OriginObj.h:831
Origin::VectorProperties::angleColumnName
string angleColumnName
Definition: OriginObj.h:470
Origin::TextProperties::fontItalic
bool fontItalic
Definition: OriginObj.h:495
OriginFile::graphCount
vector< Origin::Graph >::size_type graphCount() const
get number of graphs
Definition: OriginFile.cpp:244
Origin::Figure::fillAreaPatternWidth
double fillAreaPatternWidth
Definition: OriginObj.h:739
Origin::VectorProperties::arrowAngle
unsigned char arrowAngle
Definition: OriginObj.h:464
Origin::GraphAxis::tickAxis
GraphAxisTick tickAxis[2]
Definition: OriginObj.h:723
OriginParser::fileVersion
unsigned int fileVersion
Definition: OriginParser.h:75
OriginFile::parse
bool parse()
parse Origin file
Definition: OriginFile.cpp:180
OriginAnyParser
Definition: OriginAnyParser.h:33
Origin::SurfaceProperties::colorMap
ColorMap colorMap
Definition: OriginObj.h:536
Origin::Bitmap
Definition: OriginObj.h:786
OriginFile::noteCount
vector< Origin::Note >::size_type noteCount() const
get number of notes
Definition: OriginFile.cpp:254
OriginFile::version
double version() const
get version of Origin file
Definition: OriginFile.cpp:189
Origin::SurfaceProperties::frontColor
Color frontColor
Definition: OriginObj.h:525
Origin::TextBox
Definition: OriginObj.h:388
Origin::GraphLayer::pieTexts
vector< TextBox > pieTexts
Definition: OriginObj.h:865
Origin::TextNumeric
@ TextNumeric
Definition: OriginObj.h:45
Origin::GraphAxisFormat::minorTicksType
int minorTicksType
Definition: OriginObj.h:683
OriginFile.h
Origin::Color::Increment
@ Increment
Definition: OriginObj.h:79
Origin::SurfaceProperties::type
unsigned char type
Definition: OriginObj.h:519
Origin::GraphCurve::yColumnName
string yColumnName
Definition: OriginObj.h:592
Origin::GraphAxisTick::rotation
int rotation
Definition: OriginObj.h:703
Origin::GraphAxisFormat::hidden
bool hidden
Definition: OriginObj.h:678
Origin::Left
@ Left
Definition: OriginObj.h:75
Origin::TextProperties::justify
Justify justify
Definition: OriginObj.h:498
Origin::LineVertex::y
double y
Definition: OriginObj.h:763
Origin::GraphLayer::yAxis
GraphAxis yAxis
Definition: OriginObj.h:849
Origin::TextProperties::color
Color color
Definition: OriginObj.h:493
Origin::PieProperties::positionAssociate
bool positionAssociate
Definition: OriginObj.h:436
Origin::SpreadColumn
Definition: OriginObj.h:246
liboriginVersionString
string liboriginVersionString()
Definition: OriginFile.cpp:279
add_compile_definitions
EHsc W4 permissive wd4456 wd4458 add_compile_definitions(_CRT_SECURE_NO_WARNINGS _SILENCE_CXX17_OLD_ALLOCATOR_MEMBERS_DEPRECATION_WARNING) if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") set(CMAKE_CXX_FLAGS "$
Definition: CMakeLists.txt:19
Origin::GraphCurve::fillAreaPatternWidth
double fillAreaPatternWidth
Definition: OriginObj.h:608
OriginAnyParser::doubleToPosixTime
time_t doubleToPosixTime(double jdt)
Definition: OriginAnyParser.h:73
Origin::Figure::fillAreaPatternColor
Color fillAreaPatternColor
Definition: OriginObj.h:738
OriginParser::notes
vector< Origin::Note > notes
Definition: OriginParser.h:71
OriginAnyParser::readObjectSize
unsigned int readObjectSize()
Definition: OriginAnyParser.cpp:181
Origin::Figure::style
unsigned char style
Definition: OriginObj.h:734
Origin::ProjectNode
Definition: OriginObj.h:985
toLowerCase
string toLowerCase(string str)
Definition: OriginAnyParser.cpp:169
OriginParser::convertSpreadToExcel
void convertSpreadToExcel(vector< Origin::SpreadSheet >::size_type spread)
Definition: OriginParser.cpp:213
Origin::GraphLayer::xOffset
int xOffset
Definition: OriginObj.h:884
Origin::Window::modificationDate
time_t modificationDate
Definition: OriginObj.h:161
Origin::GraphCurve::fillAreaTransparency
unsigned char fillAreaTransparency
Definition: OriginObj.h:605
Origin::GraphLayer::hLine
double hLine
Definition: OriginObj.h:881
OriginFile::datasetCount
vector< Origin::SpreadColumn >::size_type datasetCount() const
get number of datasets
Definition: OriginFile.cpp:199
Origin::PieProperties::radius
unsigned short radius
Definition: OriginObj.h:426
Origin::GraphLayer::lines
vector< Line > lines
Definition: OriginObj.h:866
Origin::PercentileProperties::symbolColor
Color symbolColor
Definition: OriginObj.h:546
Origin::GraphAxisFormat::thickness
double thickness
Definition: OriginObj.h:680
Origin::VectorProperties::color
Color color
Definition: OriginObj.h:461
Origin::GraphCurve::fillArea
bool fillArea
Definition: OriginObj.h:601
Origin::Right
@ Right
Definition: OriginObj.h:75
Origin::SpreadColumn::ColumnType
ColumnType
Definition: OriginObj.h:247
Origin::PercentileProperties::meanSymbolType
unsigned char meanSymbolType
Definition: OriginObj.h:543
Origin::Line::end
LineVertex end
Definition: OriginObj.h:782
Origin::PercentileProperties::boxCoeff
double boxCoeff
Definition: OriginObj.h:551
Origin::Figure::attach
Attach attach
Definition: OriginObj.h:732
Origin::GraphCurve::type
unsigned char type
Definition: OriginObj.h:588
Origin::End_
@ End_
Definition: OriginObj.h:70
Origin::LineVertex::shapeWidth
double shapeWidth
Definition: OriginObj.h:760
GET_FLOAT
#define GET_FLOAT(iss, ovalue)
Definition: OriginAnyParser.cpp:30
Origin::Figure::clientRect
Rect clientRect
Definition: OriginObj.h:731
Origin::GraphAxisTick::decimalPlaces
int decimalPlaces
Definition: OriginObj.h:698
OriginParser::excels
vector< Origin::Excel > excels
Definition: OriginParser.h:68
Origin::Line::begin
LineVertex begin
Definition: OriginObj.h:781
Origin::GraphCurve::fillAreaPatternBorderStyle
unsigned char fillAreaPatternBorderStyle
Definition: OriginObj.h:609
Origin::GraphAxis::zeroLine
bool zeroLine
Definition: OriginObj.h:712
Origin::GraphLayer::yAxisBreak
GraphAxisBreak yAxisBreak
Definition: OriginObj.h:853
Origin::GraphLayer::isXYY3D
bool isXYY3D
Definition: OriginObj.h:889
Origin::None
@ None
Definition: OriginObj.h:71
Origin::SurfaceProperties::sideWallEnabled
bool sideWallEnabled
Definition: OriginObj.h:528
Origin::ColorMapLevel::lineVisible
bool lineVisible
Definition: OriginObj.h:132
OriginParser::findExcelColumnByName
vector< Origin::SpreadColumn >::difference_type findExcelColumnByName(vector< Origin::Excel >::size_type excel, vector< Origin::SpreadSheet >::size_type sheet, const string &name) const
Definition: OriginParser.cpp:71
OriginParser::findMatrixByName
vector< Origin::Matrix >::difference_type findMatrixByName(const string &name) const
Definition: OriginParser.cpp:80
cmake_minimum_required
cmake_minimum_required(VERSION 3.16.3) project(liborigin VERSION 3.0.1 LANGUAGES CXX) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED TRUE) set(CMAKE_CXX_EXTENSIONS OFF) option(BUILD_SHARED_LIBS "Build shared library" ON) option(BUILD_STATIC_LIBS "Build static library" ON) if(MSVC) set(CMAKE_CXX_FLAGS "$
Definition: CMakeLists.txt:2
OriginAnyParser::getMatrixValues
void getMatrixValues(const string &, unsigned int, short, char, char, vector< Origin::Matrix >::difference_type)
Definition: OriginAnyParser.cpp:1167
Origin::GraphCurve::symbolSize
double symbolSize
Definition: OriginObj.h:618
Origin::PieProperties::clockwiseRotation
bool clockwiseRotation
Definition: OriginObj.h:424
OriginParser::matrixes
vector< Origin::Matrix > matrixes
Definition: OriginParser.h:67
Origin::SurfaceProperties::backColorEnabled
bool backColorEnabled
Definition: OriginObj.h:524
OriginAnyParser::getZcolorsMap
void getZcolorsMap(ColorMap &, const string &, unsigned int)
Definition: OriginAnyParser.cpp:2882
Origin::SurfaceProperties::topContour
SurfaceColoration topContour
Definition: OriginObj.h:533
Origin::Window::objectID
int objectID
Definition: OriginObj.h:155
Origin::MatrixSheet::command
string command
Definition: OriginObj.h:326
Origin::ColorMapLevel::lineStyle
unsigned char lineStyle
Definition: OriginObj.h:134
Origin::GraphAxisTick::valueTypeSpecification
int valueTypeSpecification
Definition: OriginObj.h:697
OriginAnyParser::readAnnotationElement
bool readAnnotationElement()
Definition: OriginAnyParser.cpp:487
Origin::Bitmap::clientRect
Rect clientRect
Definition: OriginObj.h:787
OriginAnyParser::readCurveElement
bool readCurveElement()
Definition: OriginAnyParser.cpp:570
Origin::Figure::useBorderColor
bool useBorderColor
Definition: OriginObj.h:740