CFx SDK Documentation  2022 SP0
FxFileData.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2021 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"
#define DDKERNEL_API
Definition: DDKERNEL.h:32
QMap< QString, QVariant > QVariantMap
Definition: FxFileData.h:28
virtual const CFxString & GetPrettyFilename() const =0
virtual void Lock(bool bLock)=0
static CFxString GetAutoName()
virtual ~CFxFileData()
virtual void SetReadOnly(bool bReadOnly)=0
virtual void SetPrettyFilename(const CFxString &str)=0
virtual const QVariantMap & GetCloudStorageData() const =0
virtual FlxVersion GetFlxVersion() const =0
virtual bool IsReadOnly() const =0
virtual void SetDwgVersion(OdDb::DwgVersion version)=0
virtual void SetFlxVersion(FlxVersion version)=0
virtual void SetFilename(const CFxString &str)=0
virtual FileType GetType() const =0
virtual OdDb::DwgVersion GetDwgVersion() const =0
virtual void SetCloudStorageData(const QVariantMap &)=0
virtual void SetType(FileType type)=0
virtual bool IsNewFile() const =0
virtual bool IsLocked() const =0
virtual bool IsLockedGlobal() const =0
static CFxFileData * Create(const CFxFileData &)
virtual const CFxString & GetFilename() const =0
virtual QFile * GetFile() const =0
virtual bool IsCloudStorageFile() const =0
static CFxFileData * Create(const CFxString &fileName=CFxString())
GLsizei GLsizei GLchar * source
Definition: gles2_ext.h:282
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
DwgVersion
Definition: OdaDefs.h:46
@ kDwg
Definition: DbObject.h:151
@ kDxb
Definition: DbObject.h:153
@ kDxf
Definition: DbObject.h:152
@ version
Definition: Tf.h:335