CFx SDK Documentation  2020SP3
FxFileData.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2020 by Graebert GmbH.
3 //
4 // Permission to use, copy, modify, and distribute this software in
5 // object code form for any purpose and without fee is hereby granted,
6 // provided that the above copyright notice appears in all copies and
7 // that both that copyright notice and the limited warranty and
8 // restricted rights notice below appear in all supporting
9 // documentation.
10 //
11 // GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12 // GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13 // MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14 // DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15 // UNINTERRUPTED OR ERROR FREE.
16 
17 #pragma once
18 
19 #include "DDKERNEL.h"
20 #include "FxString.h"
21 
22 #include "FxPragmaPush.h"
23 
24 class QFile;
25 class CXeRemoteFile;
26 class QVariant;
27 template <class Key, class T>
28 class QMap;
30 
37 {
38 public:
39  /* {secret} */
40  virtual ~CFxFileData();
41 
42  /* {secret} */
43  virtual CFxFileData& operator =( const CFxFileData& source );
44 
45  enum FileType
46  {
47  kDwg = 0, // Save as DWG file
48  kDxf = 1, // Save as DXF file
49  kDxb = 2, // Save as binary DXF file
50  kFlx = 3, // Save as FLX file
51  kDwf = 4, // Save as DWF file
52  kDwt = 5, // Save as DWT file
53  kShp = 6, // Save as SHP file
54  kDws = 7, // Save as Standards file
55  kDae = 8, // Save as DAE file
56  kRfa = 9, // Save as Revit family file
57  kDgn = 10, // Save as DGN file
58  kRvt = 11, // Save as Revit project file
59  kDwgMech = 12, // Save as DWG Mechanical file
60  kUnknown = -1 // Database was created from scratch
61  };
62 
64  {
65  VNR40 = 4,
66  VNR50 = 9,
67  VNR60 = 11,
68  VNR70 = 14,
69  VNR80 = 15,
70  VNR_CURRENT = VNR70,
71  };
72 
77  virtual bool IsReadOnly() const = 0;
78 
83  virtual void SetReadOnly( bool bReadOnly ) = 0;
84 
89  virtual const CFxString& GetFilename() const = 0;
90 
95  virtual const CFxString& GetPrettyFilename() const = 0;
96 
101  virtual void SetFilename( const CFxString& str ) = 0;
102 
107  virtual void SetPrettyFilename( const CFxString& str ) = 0;
108 
113  virtual FileType GetType() const = 0;
114 
119  virtual void SetType( FileType type ) = 0;
120 
125  virtual OdDb::DwgVersion GetDwgVersion() const = 0;
126 
132 
137  virtual FlxVersion GetFlxVersion() const = 0;
138 
143  virtual void SetFlxVersion( FlxVersion version ) = 0;
144 
149  virtual QFile* GetFile() const = 0;
150 
155  virtual void Lock( bool bLock ) = 0;
156 
160  virtual bool IsLocked() const = 0;
161 
165  virtual bool IsLockedGlobal() const = 0;
166 
170  virtual bool IsCloudStorageFile() const = 0;
171 
174  virtual const QVariantMap &GetCloudStorageData() const = 0;
175 
178  virtual void SetCloudStorageData(const QVariantMap &) = 0;
179 
184  virtual bool IsNewFile() const = 0;
185 
191  static CFxFileData* Create( const CFxString& fileName = CFxString() );
192 
198  static CFxFileData* Create( const CFxFileData & );
199 
205 };
206 
207 #include "FxPragmaPop.h"
FxPragmaPop.h
CFxFileData::Create
static CFxFileData * Create(const CFxString &fileName=CFxString())
CFxFileData::GetDwgVersion
virtual OdDb::DwgVersion GetDwgVersion() const =0
OdTf::version
@ version
Definition: Tf.h:335
OdDb::kDxb
@ kDxb
Definition: DbObject.h:153
type
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
CFxFileData::~CFxFileData
virtual ~CFxFileData()
CFxFileData::GetCloudStorageData
virtual const QVariantMap & GetCloudStorageData() const =0
source
GLsizei GLsizei GLchar * source
Definition: gles2_ext.h:282
CFxFileData::IsNewFile
virtual bool IsNewFile() const =0
CFxFileData::GetFilename
virtual const CFxString & GetFilename() const =0
DDKERNEL.h
CFxFileData::GetPrettyFilename
virtual const CFxString & GetPrettyFilename() const =0
CFxFileData::SetCloudStorageData
virtual void SetCloudStorageData(const QVariantMap &)=0
kUnknown
@ kUnknown
Definition: DbManagerSubentData.h:39
FxString.h
CFxFileData::Create
static CFxFileData * Create(const CFxFileData &)
CFxFileData::FlxVersion
FlxVersion
Definition: FxFileData.h:64
OdDb::DwgVersion
DwgVersion
Definition: OdaDefs.h:46
CFxFileData::SetDwgVersion
virtual void SetDwgVersion(OdDb::DwgVersion version)=0
OdDb::kDwg
@ kDwg
Definition: DbObject.h:151
QVariantMap
QMap< QString, QVariant > QVariantMap
Definition: FxFileData.h:28
CFxString
Definition: FxString.h:48
CFxFileData
Definition: FxFileData.h:37
CFxFileData::SetReadOnly
virtual void SetReadOnly(bool bReadOnly)=0
CFxFileData::IsLockedGlobal
virtual bool IsLockedGlobal() const =0
DDKERNEL_API
#define DDKERNEL_API
Definition: DDKERNEL.h:32
CFxFileData::IsLocked
virtual bool IsLocked() const =0
CFxFileData::GetFlxVersion
virtual FlxVersion GetFlxVersion() const =0
CFxFileData::SetPrettyFilename
virtual void SetPrettyFilename(const CFxString &str)=0
CFxFileData::GetFile
virtual QFile * GetFile() const =0
CFxFileData::SetFlxVersion
virtual void SetFlxVersion(FlxVersion version)=0
CFxFileData::IsReadOnly
virtual bool IsReadOnly() const =0
QMap
Definition: FxFileData.h:28
OdDb::kDxf
@ kDxf
Definition: DbObject.h:152
CFxFileData::SetType
virtual void SetType(FileType type)=0
FxPragmaPush.h
CFxFileData::SetFilename
virtual void SetFilename(const CFxString &str)=0
CFxFileData::IsCloudStorageFile
virtual bool IsCloudStorageFile() const =0
CFxFileData::GetType
virtual FileType GetType() const =0
CFxFileData::Lock
virtual void Lock(bool bLock)=0
CFxFileData::FileType
FileType
Definition: FxFileData.h:46
CFxFileData::GetAutoName
static CFxString GetAutoName()