CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
AECObjectGeometryVersion.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, Open Design Alliance (the "Alliance").
3// All rights reserved.
4//
5// This software and its documentation and related materials are owned by
6// the Alliance. The software may only be incorporated into application
7// programs owned by members of the Alliance, subject to a signed
8// Membership Agreement and Supplemental Software License Agreement with the
9// Alliance. The structure and organization of this software are the valuable
10// trade secrets of the Alliance and its suppliers. The software is also
11// protected by copyright law and international treaty provisions. Application
12// programs incorporating this software must include the following statement
13// with their copyright notices:
14//
15// This application incorporates Open Design Alliance software pursuant to a
16// license agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 by Open Design Alliance.
18// All rights reserved.
19//
20// By use of this software, its documentation or related materials, you
21// acknowledge and accept the above terms.
23
24#ifndef __AECOBJECTGEOMETRYVERSION_H__
25#define __AECOBJECTGEOMETRYVERSION_H__
26
27#include "OdString.h"
28#include "RxSystemServices.h"
29#include "DbFiler.h"
30
40{
41public:
42 const OdString& versionGUID() const;
43 void setVersionGUID(const OdString& sVersionGUID);
44 void reset();
45
46 bool operator==( const AECObjectGeometryVersion& other) const;
47 bool operator!=( const AECObjectGeometryVersion& other) const;
48
49 void dwgInFields( OdDbDwgFiler* pFiler );
50 void dwgOutFields( OdDbDwgFiler* pFiler ) const;
51
53
54private:
55 OdString m_sVersionGUID;
56};
57
58
62 res.m_sVersionGUID = odrxSystemServices()->createGuid();
63 return res;
64}
65
66inline const OdString&
68 return m_sVersionGUID;
69}
70
71inline void
73 m_sVersionGUID = sVersionGUID;
74}
75
76inline void
78 m_sVersionGUID.empty();
79}
80
81inline bool
83 return m_sVersionGUID==other.m_sVersionGUID;
84}
85
86inline bool
88 return m_sVersionGUID!=other.m_sVersionGUID;
89}
90
91inline void
93 m_sVersionGUID = pFiler->rdString();
94}
95
96inline void
98 pFiler->wrString( m_sVersionGUID );
99}
100
101
102#endif // __AECOBJECTGEOMETRYVERSION_H__
FIRSTDLL_EXPORT OdRxSystemServices * odrxSystemServices()
void dwgInFields(OdDbDwgFiler *pFiler)
static AECObjectGeometryVersion createNewGeometryVersion()
void setVersionGUID(const OdString &sVersionGUID)
bool operator==(const AECObjectGeometryVersion &other) const
const OdString & versionGUID() const
void dwgOutFields(OdDbDwgFiler *pFiler) const
bool operator!=(const AECObjectGeometryVersion &other) const
virtual OdString rdString()=0
virtual void wrString(const OdString &value)=0
virtual OdString createGuid()
void empty()