blob: 48a6a5e6d3c705db30279dc31792be4a6bca8061 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#pragma once
#include "StarAssets.hpp"
namespace Star {
STAR_CLASS(Configuration);
STAR_EXCEPTION(RootException, StarException);
class RootBase {
public:
static RootBase* singletonPtr();
static RootBase& singleton();
virtual AssetsConstPtr assets() = 0;
virtual ConfigurationPtr configuration() = 0;
protected:
RootBase();
static atomic<RootBase*> s_singleton;
};
}
|