SituationIo.h
1 //##################################################################################################
2 //
3 // Ceetron Analyzer
4 //
5 // --------------------------------------------------------------------------------------------
6 // Copyright (C) 2019, Ceetron AS
7 // This is UNPUBLISHED PROPRIETARY SOURCE CODE of Ceetron AS. The contents of this file may
8 // not be disclosed to third parties, copied or duplicated in any form, in whole or in part,
9 // without the prior written permission of Ceetron AS.
10 //##################################################################################################
11 
12 
13 #pragma once
14 
15 #include "CeeApp/Base.h"
16 
17 #include "CeeCore/Base.h"
18 #include "CeeCore/RefCountedObject.h"
19 #include "CeeCore/Str.h"
20 
21 
22 namespace cee {
23 
24 namespace ug {
25  class Situation;
26 
27 //==================================================================================================
28 //
29 //
30 //
31 //==================================================================================================
32 class CEE_UG_EXPORT SituationIo : public RefCountedObject
33 {
34 public:
35  static bool readFolder(Situation* situation, const Str& folder);
36  static bool writeFolder(const Situation* situation, const Str& folder);
37 
38  static bool readArchiveFile(Situation* situation, const Str& filename);
39  static bool writeArchiveFile(const Situation* situation, const Str& filename);
40 
41 private:
42  SituationIo();
43  virtual ~SituationIo();
44 
45 private:
46  CEE_PRIVATE_IMPL(SituationIo);
47  CEE_DISALLOW_COPY_AND_ASSIGN(SituationIo);
48 };
49 
50 }
51 }
A class to read and write a Situation.
Definition: SituationIo.h:32
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
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
A situation stores the setup of the unstructgrid model and view.
Definition: Situation.h:41