AppComponent.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: App
5 //
6 // --------------------------------------------------------------------------------------------
7 // Copyright (C) 2011, 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 "CeeApp/Base.h"
16 #include "CeeCore/Str.h"
17 #include "CeeUnstructGrid/UnstructGridModel.h"
18 
19 namespace cee {
20 
21 class Instance;
22 
23 namespace app {
24 
25 
26 //==================================================================================================
27 //
28 // Static class for App component
29 //
30 //==================================================================================================
31 class CEE_APP_EXPORT AppComponent
32 {
33 public:
34  static bool isInitialized();
35  static bool initialize(Instance* instance);
36 
37  static unsigned int version();
38  static Str versionString();
39 
40  static void setProgressInstance(cee::ug::Progress* progress);
41  static cee::ug::Progress* progressInstance();
42 
43 
44 private:
45  static cee::ug::Progress* setGetProgressSingleton(bool set, cee::ug::Progress* progress);
46 
47  CEE_DISALLOW_COPY_AND_ASSIGN(AppComponent);
48 };
49 
50 
51 }
52 }
Static class for initialization of the component.
Definition: AppComponent.h:31
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
Ceetron Desktop Components instance object.
Definition: Instance.h:28
Progress object class.
Definition: UnstructGridModel.h:56