osb/source/base/StarRootBase.hpp

24 lines
385 B
C++
Raw Normal View History

#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;
};
}