CoreComponent.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: Core
5 //
6 // --------------------------------------------------------------------------------------------
7 // Copyright (C) 2014, 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 "CeeCore/Base.h"
16 #include "CeeCore/Instance.h"
17 #include "CeeCore/PtrRef.h"
18 #include "CeeCore/InitializationOptions.h"
19 
20 #include <string>
21 
22 namespace cee {
23 
24 class LogManager;
25 
26 
27 //==================================================================================================
28 //
29 // Static class for Core component
30 //
31 //==================================================================================================
32 class CEE_CORE_EXPORT CoreComponent
33 {
34 public:
35  static bool isInitialized();
36  static PtrRef<Instance> initialize(unsigned int licenseKeyA, unsigned int licenseKeyB, const InitializationOptions& initializationOptions = InitializationOptions());
37 
38  static unsigned int version();
39  static Str versionString();
40  static void logVersionInfo();
41 
42  static LogManager* logManager();
43 
44 private:
45  CoreComponent();
46  CEE_DISALLOW_COPY_AND_ASSIGN(CoreComponent);
47 };
48 
49 }
50 
Static class for initialization of the Core component.
Definition: CoreComponent.h:32
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppAssert.cpp:18
A general unicode based string class.
Definition: Str.h:28
Smart pointer class used for handling reference counted objects (that derive from Object)...
Definition: PtrRef.h:26
Class for managing log messages.
Definition: LogManager.h:33
Options object for specifying initialization options for Ceetron Desktop Components.
Definition: InitializationOptions.h:25