VTFxMemoryFile.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: UnstructGrid
5 //
6 // --------------------------------------------------------------------------------------------
7 // Copyright (C) 2013, Ceetron AS
8 // This is UNPUBLISHED PROPRIETARY SOURCE CODE of Ceetron AS. The contents of this file may
9 // not be disclosed to third parties, copied or duplicated in any form, in whole or in part,
10 // without the prior written permission of Ceetron AS.
11 //##################################################################################################
12 
13 #pragma once
14 
15 #include "CeeUnstructGrid/Base.h"
16 
17 #include "CeeCore/RefCountedObject.h"
18 
19 class VTFxZipMemFile;
20 
21 namespace cee {
22 class Str;
23 
24 namespace ug {
25 
26 //==================================================================================================
27 //
28 // VTFx memory file
29 //
30 //==================================================================================================
31 class CEE_UG_EXPORT VTFxMemoryFile : public RefCountedObject
32 {
33 public:
35  VTFxMemoryFile(const VTFxMemoryFile& other);
36  virtual ~VTFxMemoryFile();
37 
38  VTFxMemoryFile& operator=(const VTFxMemoryFile& other);
39 
40  void setFromRawData(unsigned char data[], size_t dataSizeInBytes);
41  bool save(const Str& filename) const;
42 
43  VTFxZipMemFile* internal_vtfxZipMemFile();
44  const VTFxZipMemFile* internal_vtfxZipMemFile() const;
45 
46 private:
47  CEE_PRIVATE_IMPL(VTFxMemoryFile);
48 };
49 
50 } // namespace ug
51 } // namespace cee
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
A VTFx model file existing in memory.
Definition: VTFxMemoryFile.h:31
A general unicode based string class.
Definition: Str.h:28
Base class for all reference counted objects with built-in support for intrusive reference counting...
Definition: RefCountedObject.h:34