CyberEngineMkIII
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Context.hpp
Go to the documentation of this file.
1 #pragma once
3 namespace CYB {
4  namespace API {
5  namespace Interop {
7  class Context {
8  private:
9  static Context* FContext;
10  public:
13  protected:
21  Context(Allocator& AAllocator, Logger& ALogger) noexcept;
22  public:
29  static Context& GetContext(void) noexcept;
30 
32  Context(const Context&) = delete;
33  };
34  };
36  API::Interop::Context& Context(void) noexcept;
37  };
38 };
Context(Allocator &AAllocator, Logger &ALogger) noexcept
Setup the context.
static Context * FContext
The context reference for the unit. This is not used inside the engine.
Definition: Context.hpp:9
Class which is used as an API for the engine.
Definition: Context.hpp:7
Used for allocating objects within and without the engine.
Definition: Allocator.hpp:7
Allocator & FAllocator
The Allocator.
Definition: Context.hpp:11
Logger & FLogger
The Logger.
Definition: Context.hpp:12
The interface for writing safe logs.
Definition: Logger.hpp:7
static Context & GetContext(void) noexcept
Get the API's Context.
Definition: CYBInterop.cpp:35