RVNGProperty.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2 /* librevenge
3  * Version: MPL 2.0 / LGPLv2.1+
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * Major Contributor(s):
10  * Copyright (C) 2004 William Lachance (wrlach@gmail.com)
11  *
12  * For minor contributions see the git repository.
13  *
14  * Alternatively, the contents of this file may be used under the terms
15  * of the GNU Lesser General Public License Version 2.1 or later
16  * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
17  * applicable instead of those above.
18  */
19 
20 #ifndef RVNGPROPERTY_H
21 #define RVNGPROPERTY_H
22 
23 #include "librevenge-api.h"
24 
25 #include "RVNGString.h"
26 
27 namespace librevenge
28 {
29 
31 
33 {
34 public:
35  virtual ~RVNGProperty();
36  virtual int getInt() const = 0;
37  virtual double getDouble() const = 0;
39  virtual RVNGUnit getUnit() const = 0;
40  virtual RVNGString getStr() const = 0;
41  virtual RVNGProperty *clone() const = 0;
42 };
43 
45 {
46 public:
47  static RVNGProperty *newStringProp(const RVNGString &str);
48  static RVNGProperty *newStringProp(const char *str);
49  static RVNGProperty *newBinaryDataProp(const RVNGBinaryData &data);
50  static RVNGProperty *newBinaryDataProp(const unsigned char *buffer,
51  const unsigned long bufferSize);
52  static RVNGProperty *newIntProp(const int val);
53  static RVNGProperty *newBoolProp(const bool val);
54  static RVNGProperty *newDoubleProp(const double val);
55  static RVNGProperty *newInchProp(const double val);
56  static RVNGProperty *newPercentProp(const double val);
57  static RVNGProperty *newPointProp(const double val);
58  static RVNGProperty *newTwipProp(const double val);
59 };
60 
61 }
62 
63 #endif /* RVNGPROPERTY_H */
64 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
RVNGString.h
librevenge::RVNGPropertyFactory::newPointProp
static RVNGProperty * newPointProp(const double val)
Definition: RVNGProperty.cpp:447
librevenge::RVNGPropertyFactory::newTwipProp
static RVNGProperty * newTwipProp(const double val)
Definition: RVNGProperty.cpp:452
librevenge::RVNGStringProperty::RVNGStringProperty
RVNGStringProperty(const RVNGString &str)
Definition: RVNGProperty.cpp:225
librevenge::RVNGTwipProperty
Definition: RVNGProperty.cpp:200
librevenge::RVNGPointProperty::getUnit
virtual RVNGUnit getUnit() const
returns the property unit when possible.
Definition: RVNGProperty.cpp:191
librevenge::RVNGStringProperty::getUnit
virtual RVNGUnit getUnit() const
returns the property unit when possible.
Definition: RVNGProperty.cpp:75
librevenge::RVNGIntProperty::clone
virtual RVNGProperty * clone() const
Definition: RVNGProperty.cpp:285
librevenge::RVNGString::append
void void append(const RVNGString &s)
Definition: RVNGString.cpp:211
librevenge::RVNGDoubleProperty::m_val
double m_val
Definition: RVNGProperty.cpp:157
librevenge::RVNGIntProperty::~RVNGIntProperty
~RVNGIntProperty()
Definition: RVNGProperty.cpp:115
librevenge::RVNGProperty::clone
virtual RVNGProperty * clone() const =0
librevenge-api.h
librevenge::RVNGPropertyFactory::newBinaryDataProp
static RVNGProperty * newBinaryDataProp(const RVNGBinaryData &data)
Definition: RVNGProperty.cpp:412
librevenge::RVNGTwipProperty::getUnit
virtual RVNGUnit getUnit() const
returns the property unit when possible.
Definition: RVNGProperty.cpp:204
librevenge::RVNGPointProperty::getStr
virtual RVNGString getStr() const
Definition: RVNGProperty.cpp:373
librevenge::RVNGGenericProperty
Definition: RVNGProperty.cpp:213
librevenge::RVNGPointProperty::~RVNGPointProperty
~RVNGPointProperty()
Definition: RVNGProperty.cpp:190
librevenge::RVNGPercentProperty
Definition: RVNGProperty.cpp:174
librevenge::RVNGBinaryDataProperty::getDouble
virtual double getDouble() const
Definition: RVNGProperty.cpp:96
librevenge::RVNGInchProperty::getUnit
virtual RVNGUnit getUnit() const
returns the property unit when possible.
Definition: RVNGProperty.cpp:165
librevenge::RVNGPropertyFactory::newStringProp
static RVNGProperty * newStringProp(const RVNGString &str)
Definition: RVNGProperty.cpp:402
librevenge.h
librevenge::RVNGIntProperty::m_val
int m_val
Definition: RVNGProperty.cpp:126
librevenge::RVNGDoubleProperty::getInt
virtual int getInt() const
Definition: RVNGProperty.cpp:313
librevenge::RVNGDoubleProperty::getStr
virtual RVNGString getStr() const
Definition: RVNGProperty.cpp:323
librevenge::RVNGBoolProperty
Definition: RVNGProperty.cpp:130
librevenge::RVNGGenericProperty::RVNGGenericProperty
RVNGGenericProperty(const double val)
librevenge::RVNGStringProperty::getInt
virtual int getInt() const
Definition: RVNGProperty.cpp:67
librevenge::RVNGDoubleProperty::clone
virtual RVNGProperty * clone() const
Definition: RVNGProperty.cpp:329
librevenge::RVNGBinaryDataProperty
Definition: RVNGProperty.cpp:87
librevenge::RVNGBinaryDataProperty::getStr
virtual RVNGString getStr() const
Definition: RVNGProperty.cpp:253
librevenge::RVNGIntProperty::getDouble
virtual double getDouble() const
Definition: RVNGProperty.cpp:273
librevenge::RVNGBinaryDataProperty::~RVNGBinaryDataProperty
~RVNGBinaryDataProperty()
Definition: RVNGProperty.cpp:91
librevenge::RVNGBoolProperty::getUnit
virtual RVNGUnit getUnit() const
returns the property unit when possible.
Definition: RVNGProperty.cpp:134
librevenge::RVNGIntProperty::getStr
virtual RVNGString getStr() const
Definition: RVNGProperty.cpp:278
librevenge::RVNGPropertyFactory
Definition: RVNGProperty.h:45
librevenge::RVNGBoolProperty::RVNGBoolProperty
RVNGBoolProperty(const bool val)
Definition: RVNGProperty.cpp:290
librevenge::RVNGTwipProperty::clone
virtual RVNGProperty * clone() const
Definition: RVNGProperty.cpp:397
librevenge::RVNGTwipProperty::~RVNGTwipProperty
~RVNGTwipProperty()
Definition: RVNGProperty.cpp:203
librevenge::RVNGBinaryDataProperty::getInt
virtual int getInt() const
Definition: RVNGProperty.cpp:92
librevenge::RVNGPercentProperty::getStr
virtual RVNGString getStr() const
Definition: RVNGProperty.cpp:356
librevenge::RVNGBinaryData
A representation of arbitrary binary data.
Definition: RVNGBinaryData.h:37
librevenge::RVNGProperty
Definition: RVNGProperty.h:33
librevenge::RVNGIntProperty::getInt
virtual int getInt() const
Definition: RVNGProperty.cpp:268
librevenge::RVNGBinaryData::getBase64Data
const RVNGString getBase64Data() const
Get the content encoded as base64.
Definition: RVNGBinaryData.cpp:231
librevenge::DrawingSVG::doubleToString
static std::string doubleToString(const double value)
Definition: RVNGSVGDrawingGenerator.cpp:71
librevenge::RVNGBinaryDataProperty::clone
virtual RVNGProperty * clone() const
Definition: RVNGProperty.cpp:258
librevenge::RVNGStringProperty::~RVNGStringProperty
~RVNGStringProperty()
Definition: RVNGProperty.cpp:66
librevenge::RVNGStringProperty::m_str
RVNGString m_str
Definition: RVNGProperty.cpp:83
librevenge::RVNGPointProperty
Definition: RVNGProperty.cpp:187
librevenge::RVNGInchProperty::~RVNGInchProperty
~RVNGInchProperty()
Definition: RVNGProperty.cpp:164
librevenge::RVNGString
UTF-8 string.
Definition: RVNGString.h:34
librevenge::RVNG_POINT
@ RVNG_POINT
Definition: RVNGProperty.h:30
librevenge::RVNGUnit
RVNGUnit
Definition: RVNGProperty.h:30
librevenge::RVNGPointProperty::clone
virtual RVNGProperty * clone() const
Definition: RVNGProperty.cpp:380
librevenge::RVNGStringProperty::getDouble
virtual double getDouble() const
Definition: RVNGProperty.cpp:71
librevenge::RVNG_INCH
@ RVNG_INCH
Definition: RVNGProperty.h:30
librevenge::RVNG_UNIT_ERROR
@ RVNG_UNIT_ERROR
Definition: RVNGProperty.h:30
librevenge::RVNG_PERCENT
@ RVNG_PERCENT
Definition: RVNGProperty.h:30
librevenge::RVNGStringProperty::clone
virtual RVNGProperty * clone() const
Definition: RVNGProperty.cpp:239
librevenge::RVNGDoubleProperty::getUnit
virtual RVNGUnit getUnit() const
returns the property unit when possible.
Definition: RVNGProperty.cpp:149
librevenge::RVNGInchProperty::getStr
virtual RVNGString getStr() const
Definition: RVNGProperty.cpp:339
librevenge::RVNGIntProperty::RVNGIntProperty
RVNGIntProperty(const int val)
Definition: RVNGProperty.cpp:263
librevenge::RVNGPropertyFactory::newDoubleProp
static RVNGProperty * newDoubleProp(const double val)
Definition: RVNGProperty.cpp:432
librevenge::RVNGProperty::getStr
virtual RVNGString getStr() const =0
librevenge::RVNGIntProperty
Definition: RVNGProperty.cpp:112
librevenge::RVNGProperty::getInt
virtual int getInt() const =0
librevenge::RVNGPropertyFactory::newPercentProp
static RVNGProperty * newPercentProp(const double val)
Definition: RVNGProperty.cpp:442
librevenge::RVNGBoolProperty::getStr
virtual RVNGString getStr() const
Definition: RVNGProperty.cpp:295
librevenge::RVNGInchProperty
Definition: RVNGProperty.cpp:161
librevenge::RVNGPointProperty::RVNGPointProperty
RVNGPointProperty(const double val)
Definition: RVNGProperty.cpp:368
librevenge::RVNGTwipProperty::RVNGTwipProperty
RVNGTwipProperty(const double val)
Definition: RVNGProperty.cpp:385
librevenge::RVNGInchProperty::RVNGInchProperty
RVNGInchProperty(const double val)
Definition: RVNGProperty.cpp:334
librevenge::RVNGBinaryDataProperty::getUnit
virtual RVNGUnit getUnit() const
returns the property unit when possible.
Definition: RVNGProperty.cpp:100
librevenge::RVNG_GENERIC
@ RVNG_GENERIC
Definition: RVNGProperty.h:30
librevenge::RVNGStringProperty::getStr
virtual RVNGString getStr() const
Definition: RVNGProperty.cpp:234
librevenge::RVNGPercentProperty::~RVNGPercentProperty
~RVNGPercentProperty()
Definition: RVNGProperty.cpp:177
librevenge::RVNGBoolProperty::~RVNGBoolProperty
~RVNGBoolProperty()
Definition: RVNGProperty.cpp:133
librevenge::RVNGBoolProperty::clone
virtual RVNGProperty * clone() const
Definition: RVNGProperty.cpp:303
librevenge::RVNGDoubleProperty::~RVNGDoubleProperty
~RVNGDoubleProperty()
Definition: RVNGProperty.cpp:146
librevenge::RVNGGenericProperty::~RVNGGenericProperty
~RVNGGenericProperty()
Definition: RVNGProperty.cpp:216
librevenge::RVNGIntProperty::getUnit
virtual RVNGUnit getUnit() const
returns the property unit when possible.
Definition: RVNGProperty.cpp:118
librevenge
Definition: RVNGBinaryData.cpp:39
librevenge::RVNGDoubleProperty::RVNGDoubleProperty
RVNGDoubleProperty(const double val)
Definition: RVNGProperty.cpp:308
librevenge::RVNGProperty::getUnit
virtual RVNGUnit getUnit() const =0
returns the property unit when possible.
librevenge::RVNGBinaryDataProperty::m_data
RVNGBinaryData m_data
Definition: RVNGProperty.cpp:108
librevenge::RVNGString::sprintf
void sprintf(const char *format,...) REVENGE_ATTRIBUTE_PRINTF(2
Definition: RVNGString.cpp:179
librevenge::RVNGGenericProperty::clone
virtual RVNGProperty * clone() const
librevenge::RVNGTwipProperty::getStr
virtual RVNGString getStr() const
Definition: RVNGProperty.cpp:390
librevenge::RVNGPercentProperty::getUnit
virtual RVNGUnit getUnit() const
returns the property unit when possible.
Definition: RVNGProperty.cpp:178
librevenge::RVNGPropertyFactory::newIntProp
static RVNGProperty * newIntProp(const int val)
Definition: RVNGProperty.cpp:422
librevenge::RVNGPercentProperty::RVNGPercentProperty
RVNGPercentProperty(const double val)
Definition: RVNGProperty.cpp:351
librevenge::RVNGProperty::~RVNGProperty
virtual ~RVNGProperty()
Definition: RVNGProperty.cpp:221
librevenge::RVNGDoubleProperty::getDouble
virtual double getDouble() const
Definition: RVNGProperty.cpp:318
librevenge::RVNGInchProperty::clone
virtual RVNGProperty * clone() const
Definition: RVNGProperty.cpp:346
librevenge::RVNG_TWIP
@ RVNG_TWIP
Definition: RVNGProperty.h:30
librevenge::RVNGStringProperty
Definition: RVNGProperty.cpp:62
librevenge::RVNGPercentProperty::clone
virtual RVNGProperty * clone() const
Definition: RVNGProperty.cpp:363
librevenge::RVNGGenericProperty::getStr
virtual RVNGString getStr() const
REVENGE_API
#define REVENGE_API
Definition: librevenge-api.h:34
librevenge::RVNGDoubleProperty
Definition: RVNGProperty.cpp:143
librevenge::RVNGProperty::getDouble
virtual double getDouble() const =0
librevenge::RVNGBinaryDataProperty::RVNGBinaryDataProperty
RVNGBinaryDataProperty(const RVNGBinaryData &data)
Definition: RVNGProperty.cpp:244
librevenge::RVNGPropertyFactory::newInchProp
static RVNGProperty * newInchProp(const double val)
Definition: RVNGProperty.cpp:437
librevenge::RVNGPropertyFactory::newBoolProp
static RVNGProperty * newBoolProp(const bool val)
Definition: RVNGProperty.cpp:427

Generated for librevenge by doxygen 1.8.18