CFx SDK Documentation  2023 SP0
FxFileData.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2022 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  kDwgMech2012 = 12, // 2012 Save as DWG Mechanical file
60  kDwgMech2013 = 13, // 2013 Save as DWG Mechanical file
61  kDwgMech2014 = 14, // 2014 Save as DWG Mechanical file
62  kDwgMech2015 = 15, // 2015 Save as DWG Mechanical file
63  kDwgMech2016 = 16, // 2016 Save as DWG Mechanical file
64  kDwgMech2018 = 17, // 2018 Save as DWG Mechanical file
65  kUnknown = -1 // Database was created from scratch
66  };
67 
69  {
70  VNR40 = 4,
71  VNR50 = 9,
72  VNR60 = 11,
73  VNR70 = 14,
74  VNR80 = 15,
75  VNR_CURRENT = VNR70,
76  };
77 
82  virtual bool IsReadOnly() const = 0;
83 
88  virtual void SetReadOnly( bool bReadOnly ) = 0;
89 
94  virtual const CFxString& GetFilename() const = 0;
95 
100  virtual const CFxString& GetPrettyFilename() const = 0;
101 
106  virtual void SetFilename( const CFxString& str ) = 0;
107 
112  virtual void SetPrettyFilename( const CFxString& str ) = 0;
113 
118  virtual FileType GetType() const = 0;
119 
124  virtual void SetType( FileType type ) = 0;
125 
130  virtual OdDb::DwgVersion GetDwgVersion() const = 0;
131 
137 
142  virtual FlxVersion GetFlxVersion() const = 0;
143 
148  virtual void SetFlxVersion( FlxVersion version ) = 0;
149 
154  virtual QFile* GetFile() const = 0;
155 
160  virtual void Lock( bool bLock ) = 0;
161 
165  virtual bool IsLocked() const = 0;
166 
170  virtual bool IsLockedGlobal() const = 0;
171 
175  virtual bool IsCloudStorageFile() const = 0;
176 
179  virtual const QVariantMap &GetCloudStorageData() const = 0;
180 
183  virtual void SetCloudStorageData(const QVariantMap &) = 0;
184 
189  virtual bool IsNewFile() const = 0;
190 
196  static CFxFileData* Create( const CFxString& fileName = CFxString() );
197 
203  static CFxFileData* Create( const CFxFileData & );
204 
210 };
211 
212 #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