OpenLexocad
27.0
|
#include <Variant.h>
Public Types | |
enum | Type { Undefined = 0, UInt8, UInt8List, UInt32, UInt64, Integer, IntegerList, Long, Double, StdString, String, Bool, StdStringList, StringList, MaterialList, Texture2List, Color, MColor, ColorList, MColorList, Texture2, Texture2Transform, TextureCoordinateMapping, TextureCoordinateFunction, DrawStyle, Arrowheads, Material, Object, ObjectSet, ObjectVector, Font, DateTime, DateTimeList, SearchSettings, SearchSettingsVector, Axis1, Axis2, Axis2d, Axis22d, Placement, Point, Point2d, Vector, Direction, Transform, GTransform, VectorList, PointList, Point2dList, Md5, BrepData, BrepDataSet, Shape, ConstShape, RealList, L2D_Placement, ListPointList, CompoundPlaneAngle, VariantList, GUID, ImportData, IfcEntity, LinkList, User = 127 } |
Public Member Functions | |
Variant () | |
Variant (const Variant &in) | |
Variant (int i) | |
Variant (long i) | |
Variant (uint8_t i) | |
Variant (uint32_t i) | |
Variant (uint64_t i) | |
Variant (double d) | |
Variant (const wchar_t *s) | |
Variant (const Base::String &s) | |
Variant (bool b) | |
Variant (const Base::Color &c) | |
Variant (const Base::MColor &c) | |
Variant (const std::vector< Base::Color > &cl) | |
Variant (const std::vector< Base::MColor > &cl) | |
Variant (const Draw::OglMaterial &m) | |
Variant (const Draw::Texture2 &t) | |
Variant (const Draw::Texture2Transform &ttf) | |
Variant (const Draw::TextureCoordinateMapping &tcm) | |
Variant (const Draw::TextureCoordinateFunction &tcf) | |
Variant (const Draw::DrawStyle &ds) | |
Variant (const Draw::Arrowheads &ah) | |
Variant (const std::list< std::string > &sl) | |
Variant (const std::list< Base::String > &sl) | |
Variant (const std::map< int, Draw::OglMaterial > &ml) | |
Variant (const std::map< int, Draw::Texture2 > &tl) | |
Variant (const Geom::Ax1 &ax1) | |
Variant (const Geom::Ax2 &ax2) | |
Variant (const Geom::Ax2d &ax2d) | |
Variant (const Geom::Ax22d &ax22d) | |
Variant (Core::DocObject *o) | |
Variant (const boost::unordered_set< Core::DocObject * > &oset) | |
Variant (const std::vector< Core::DocObject * > &objects) | |
Variant (const Geom::Pnt &p) | |
Variant (const Geom::Pnt2d &p) | |
Variant (const Geom::Vec &v) | |
Variant (const Geom::Dir &dir) | |
Variant (const Geom::Trsf &t) | |
Variant (const Geom::GTrsf &t) | |
Variant (const std::vector< int > &ilist) | |
Variant (const std::vector< uint8_t > &ilist) | |
Variant (const std::list< Geom::Vec > &vlist) | |
Variant (const std::vector< Geom::Pnt > &plist) | |
Variant (const std::vector< Geom::Pnt2d > &plist) | |
Variant (const MD5 &v) | |
Variant (pBrepData data) | |
Variant (const std::vector< pBrepData > &dataSet) | |
Variant (pShape shape) | |
Variant (pConstShape shape) | |
Variant (const std::list< double > &value) | |
Variant (const std::list< std::list< Geom::Pnt >> &the_list) | |
Variant (const Geom::CompoundPlaneAngle &compangle) | |
Variant (const std::vector< Core::Variant > &varList) | |
Variant (const Base::GlobalId &id) | |
Variant (const std::shared_ptr< ImportMessageDataType > aData) | |
Variant (const std::shared_ptr< LxIfcBase::LxIfcEntity > aEntity) | |
Variant (const std::list< Core::DocObject * > &list) | |
~Variant (void) | |
bool | operator== (const Variant &other) const |
bool | operator!= (const Variant &other) const |
Variant::Type | getType () const |
virtual int | getUserType () const |
Must be overwritten for custom types. More... | |
bool | canConvert (Variant::Type t) const |
uint64_t | toUInt64 (bool *ok=0) const |
uint32_t | toUInt32 (bool *ok=0) const |
uint8_t | toUInt8 (bool *ok=0) const |
int | toInteger (bool *ok=0) const |
long | toLong (bool *ok=0) const |
std::string | toStdString (bool *ok=0) const |
Base::String | toString (bool *ok=0) const |
double | toDouble (bool *ok=0) const |
bool | toBool (bool *ok=0) const |
Base::Color | toColor (bool *ok=0) const |
std::vector< Base::Color > | toColorList (bool *ok=0) const |
Draw::OglMaterial | toMaterial (bool *ok=0) const |
Draw::Texture2 | toTexture2 (bool *ok=0) const |
Draw::Texture2Transform | toTexture2Transform (bool *ok=0) const |
Draw::TextureCoordinateMapping | toTextureCoordinateMapping (bool *ok=0) const |
Draw::TextureCoordinateFunction | toTextureCoordinateFunction (bool *ok=0) const |
Draw::DrawStyle | toDrawStyle (bool *ok=0) const |
Draw::Arrowheads | toArrowheads (bool *ok=0) const |
std::list< std::string > | toStdStringList (bool *ok=0) const |
std::list< Base::String > | toStringList (bool *ok=0) const |
std::map< int, Draw::OglMaterial > | toMaterialList (bool *ok=0) const |
std::map< int, Draw::Texture2 > | toTexture2List (bool *ok=0) const |
Geom::Ax1 | toAxis1 (bool *ok=0) const |
Geom::Ax2 | toAxis2 (bool *ok=0) const |
Geom::Ax2d | toAxis2d (bool *ok=0) const |
Geom::Ax22d | toAxis22d (bool *ok=0) const |
Core::DocObject * | toObject (bool *ok=0) const |
boost::unordered_set< Core::DocObject * > | toObjectSet (bool *ok=0) const |
std::vector< Core::DocObject * > | toObjectVector (bool *ok=0) const |
Geom::Pnt | toPoint (bool *ok=0) const |
Geom::Pnt2d | toPoint2d (bool *ok=0) const |
Geom::Vec | toVector (bool *ok=0) const |
Geom::Dir | toDirection (bool *ok=0) const |
Geom::Trsf | toTransform (bool *ok=0) const |
Geom::GTrsf | toGTransform (bool *ok=0) const |
std::list< Geom::Vec > | toVectorList (bool *ok=0) const |
std::vector< Geom::Pnt > | toPointList (bool *ok=0) const |
std::vector< Geom::Pnt2d > | toPoint2dList (bool *ok=0) const |
MD5 | toMD5 (bool *ok=0) const |
pBrepData | toBrepData (bool *ok=0) const |
std::vector< pBrepData > | toBrepDataSet (bool *ok=0) const |
std::vector< int > | toIntegerList (bool *ok=0) const |
std::vector< uint8_t > | toUInt8List (bool *ok=0) const |
std::list< double > | toRealList (bool *ok=0) const |
std::list< std::list< Geom::Pnt > > | toListPointList (bool *ok=0) const |
Geom::CompoundPlaneAngle | toCompoundPlaneAngle (bool *ok=0) const |
std::vector< Core::Variant > | toVariantList (bool *ok=0) const |
const std::shared_ptr< Core::ImportMessageDataType > | toImportMessageDataType (bool *ok=0) const |
std::shared_ptr< LxIfcBase::LxIfcEntity > | toIfcEntity (bool *ok=0) const |
std::list< Core::DocObject * > | toLinkList (bool *ok=nullptr) const |
Base::String | getAsString (bool humanReadable=true, int *version=0) const |
std::string | getTypeAsString () const |
Returns variant type as string. More... | |
bool | hasValue () const |
Variant (const QFont &font) | |
Variant (const QDateTime &dateTime) | |
Variant (const std::list< QDateTime > &dateTime) | |
Variant (const std::vector< std::vector< SearchValue >> &searchSettings) | |
Variant (const std::vector< std::vector< std::vector< SearchValue >>> &searchSettingsVector) | |
QFont | toFont (bool *ok=0) const |
QDateTime | toDateTime (bool *ok=0) const |
std::list< QDateTime > | toDateTimeList (bool *ok=0) const |
std::vector< std::vector< SearchValue > > | toSearchSettings (bool *ok=0) const |
std::vector< std::vector< std::vector< SearchValue > > > | toSearchSettingsVector (bool *ok=0) const |
Base::GlobalId | toGUID (bool *ok=0) const |
template<typename T > | |
T | getValue (bool *ok) const |
template<> | |
int | getValue (bool *ok) const |
template<> | |
uint32_t | getValue (bool *ok) const |
template<> | |
long | getValue (bool *ok) const |
template<> | |
std::string | getValue (bool *ok) const |
template<> | |
double | getValue (bool *ok) const |
template<> | |
bool | getValue (bool *ok) const |
template<> | |
Base::Color | getValue (bool *ok) const |
template<> | |
Draw::OglMaterial | getValue (bool *ok) const |
template<> | |
Draw::Texture2 | getValue (bool *ok) const |
template<> | |
Draw::Texture2Transform | getValue (bool *ok) const |
template<> | |
Draw::TextureCoordinateMapping | getValue (bool *ok) const |
template<> | |
Draw::TextureCoordinateFunction | getValue (bool *ok) const |
template<> | |
Draw::DrawStyle | getValue (bool *ok) const |
template<> | |
Draw::Arrowheads | getValue (bool *ok) const |
template<> | |
std::list< std::string > | getValue (bool *ok) const |
template<> | |
std::list< Base::String > | getValue (bool *ok) const |
template<> | |
std::map< int, Draw::OglMaterial > | getValue (bool *ok) const |
template<> | |
std::map< int, Draw::Texture2 > | getValue (bool *ok) const |
template<> | |
Geom::Ax1 | getValue (bool *ok) const |
template<> | |
Geom::Ax2 | getValue (bool *ok) const |
template<> | |
Geom::Ax2d | getValue (bool *ok) const |
template<> | |
Geom::Ax22d | getValue (bool *ok) const |
template<> | |
Core::DocObject * | getValue (bool *ok) const |
template<> | |
boost::unordered_set< Core::DocObject * > | getValue (bool *ok) const |
template<> | |
std::vector< Core::DocObject * > | getValue (bool *ok) const |
template<> | |
Geom::Pnt | getValue (bool *ok) const |
template<> | |
Geom::Pnt2d | getValue (bool *ok) const |
template<> | |
Geom::Vec | getValue (bool *ok) const |
template<> | |
Geom::Dir | getValue (bool *ok) const |
template<> | |
Geom::Trsf | getValue (bool *ok) const |
template<> | |
Geom::GTrsf | getValue (bool *ok) const |
template<> | |
std::list< Geom::Vec > | getValue (bool *ok) const |
template<> | |
std::vector< Geom::Pnt > | getValue (bool *ok) const |
template<> | |
std::vector< Geom::Pnt2d > | getValue (bool *ok) const |
template<> | |
MD5 | getValue (bool *ok) const |
template<> | |
pBrepData | getValue (bool *ok) const |
template<> | |
std::vector< pBrepData > | getValue (bool *ok) const |
template<> | |
std::vector< int > | getValue (bool *ok) const |
template<> | |
Base::GlobalId | getValue (bool *ok) const |
template<> | |
std::shared_ptr< LxIfcBase::LxIfcEntity > | getValue (bool *ok) const |
template<> | |
std::list< Core::DocObject * > | getValue (bool *ok) const |
Public Attributes | |
int | type |
The variant type. More... | |
boost::any | data |
The data. More... | |
Friends | |
class | VariantHandler |
class | Topo::Shape |
CORE_EXPORT std::ostream & | operator<< (std::ostream &o, const Core::Variant &variant) |
enum Core::Variant::Type |
Core::Variant::Variant | ( | ) |
Core::Variant::Variant | ( | const Variant & | in | ) |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
Core::Variant::~Variant | ( | void | ) |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
bool Core::Variant::canConvert | ( | Variant::Type | t | ) | const |
Base::String Core::Variant::getAsString | ( | bool | humanReadable = true , |
int * | version = 0 |
||
) | const |
Returns a string representation of the variant. If 'humanReadable=true' it returns a long version of the string, if 'false' it returns a short version for storing data. To get back the variants value from a string use the short version ('false')
Variant::Type Core::Variant::getType | ( | ) | const |
std::string Core::Variant::getTypeAsString | ( | ) | const |
Returns variant type as string.
|
inlinevirtual |
Must be overwritten for custom types.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool Core::Variant::hasValue | ( | ) | const |
bool Core::Variant::operator!= | ( | const Variant & | other | ) | const |
bool Core::Variant::operator== | ( | const Variant & | other | ) | const |
Draw::Arrowheads Core::Variant::toArrowheads | ( | bool * | ok = 0 | ) | const |
Geom::Ax1 Core::Variant::toAxis1 | ( | bool * | ok = 0 | ) | const |
Geom::Ax2 Core::Variant::toAxis2 | ( | bool * | ok = 0 | ) | const |
Geom::Ax22d Core::Variant::toAxis22d | ( | bool * | ok = 0 | ) | const |
Geom::Ax2d Core::Variant::toAxis2d | ( | bool * | ok = 0 | ) | const |
bool Core::Variant::toBool | ( | bool * | ok = 0 | ) | const |
pBrepData Core::Variant::toBrepData | ( | bool * | ok = 0 | ) | const |
std::vector<pBrepData> Core::Variant::toBrepDataSet | ( | bool * | ok = 0 | ) | const |
Base::Color Core::Variant::toColor | ( | bool * | ok = 0 | ) | const |
std::vector<Base::Color> Core::Variant::toColorList | ( | bool * | ok = 0 | ) | const |
Geom::CompoundPlaneAngle Core::Variant::toCompoundPlaneAngle | ( | bool * | ok = 0 | ) | const |
QDateTime Core::Variant::toDateTime | ( | bool * | ok = 0 | ) | const |
std::list<QDateTime> Core::Variant::toDateTimeList | ( | bool * | ok = 0 | ) | const |
Geom::Dir Core::Variant::toDirection | ( | bool * | ok = 0 | ) | const |
double Core::Variant::toDouble | ( | bool * | ok = 0 | ) | const |
Draw::DrawStyle Core::Variant::toDrawStyle | ( | bool * | ok = 0 | ) | const |
QFont Core::Variant::toFont | ( | bool * | ok = 0 | ) | const |
Geom::GTrsf Core::Variant::toGTransform | ( | bool * | ok = 0 | ) | const |
Base::GlobalId Core::Variant::toGUID | ( | bool * | ok = 0 | ) | const |
std::shared_ptr<LxIfcBase::LxIfcEntity> Core::Variant::toIfcEntity | ( | bool * | ok = 0 | ) | const |
const std::shared_ptr<Core::ImportMessageDataType> Core::Variant::toImportMessageDataType | ( | bool * | ok = 0 | ) | const |
int Core::Variant::toInteger | ( | bool * | ok = 0 | ) | const |
std::vector<int> Core::Variant::toIntegerList | ( | bool * | ok = 0 | ) | const |
std::list<Core::DocObject*> Core::Variant::toLinkList | ( | bool * | ok = nullptr | ) | const |
std::list<std::list<Geom::Pnt> > Core::Variant::toListPointList | ( | bool * | ok = 0 | ) | const |
long Core::Variant::toLong | ( | bool * | ok = 0 | ) | const |
Draw::OglMaterial Core::Variant::toMaterial | ( | bool * | ok = 0 | ) | const |
std::map<int, Draw::OglMaterial> Core::Variant::toMaterialList | ( | bool * | ok = 0 | ) | const |
MD5 Core::Variant::toMD5 | ( | bool * | ok = 0 | ) | const |
Core::DocObject* Core::Variant::toObject | ( | bool * | ok = 0 | ) | const |
boost::unordered_set<Core::DocObject*> Core::Variant::toObjectSet | ( | bool * | ok = 0 | ) | const |
std::vector<Core::DocObject*> Core::Variant::toObjectVector | ( | bool * | ok = 0 | ) | const |
Geom::Pnt Core::Variant::toPoint | ( | bool * | ok = 0 | ) | const |
Geom::Pnt2d Core::Variant::toPoint2d | ( | bool * | ok = 0 | ) | const |
std::vector<Geom::Pnt2d> Core::Variant::toPoint2dList | ( | bool * | ok = 0 | ) | const |
std::vector<Geom::Pnt> Core::Variant::toPointList | ( | bool * | ok = 0 | ) | const |
std::list<double> Core::Variant::toRealList | ( | bool * | ok = 0 | ) | const |
std::vector<std::vector<SearchValue> > Core::Variant::toSearchSettings | ( | bool * | ok = 0 | ) | const |
std::vector<std::vector<std::vector<SearchValue> > > Core::Variant::toSearchSettingsVector | ( | bool * | ok = 0 | ) | const |
std::string Core::Variant::toStdString | ( | bool * | ok = 0 | ) | const |
std::list<std::string> Core::Variant::toStdStringList | ( | bool * | ok = 0 | ) | const |
Base::String Core::Variant::toString | ( | bool * | ok = 0 | ) | const |
std::list<Base::String> Core::Variant::toStringList | ( | bool * | ok = 0 | ) | const |
Draw::Texture2 Core::Variant::toTexture2 | ( | bool * | ok = 0 | ) | const |
std::map<int, Draw::Texture2> Core::Variant::toTexture2List | ( | bool * | ok = 0 | ) | const |
Draw::Texture2Transform Core::Variant::toTexture2Transform | ( | bool * | ok = 0 | ) | const |
Draw::TextureCoordinateFunction Core::Variant::toTextureCoordinateFunction | ( | bool * | ok = 0 | ) | const |
Draw::TextureCoordinateMapping Core::Variant::toTextureCoordinateMapping | ( | bool * | ok = 0 | ) | const |
Geom::Trsf Core::Variant::toTransform | ( | bool * | ok = 0 | ) | const |
uint32_t Core::Variant::toUInt32 | ( | bool * | ok = 0 | ) | const |
uint64_t Core::Variant::toUInt64 | ( | bool * | ok = 0 | ) | const |
uint8_t Core::Variant::toUInt8 | ( | bool * | ok = 0 | ) | const |
std::vector<uint8_t> Core::Variant::toUInt8List | ( | bool * | ok = 0 | ) | const |
std::vector<Core::Variant> Core::Variant::toVariantList | ( | bool * | ok = 0 | ) | const |
Geom::Vec Core::Variant::toVector | ( | bool * | ok = 0 | ) | const |
std::list<Geom::Vec> Core::Variant::toVectorList | ( | bool * | ok = 0 | ) | const |
|
friend |
|
friend |
|
friend |
boost::any Core::Variant::data |
The data.
int Core::Variant::type |
The variant type.