Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Enumerations | Functions
system_utils.h File Reference
#include <streambuf>
#include <ostream>
#include <vector>
#include <memory>
#include <fstream>
#include <mutex>
#include <iostream>
#include <string>
#include <sstream>
#include "system_consts.h"
#include "log_sink.h"
+ Include dependency graph for system_utils.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Logging::Log
 

Namespaces

namespace  Logging
 

Macros

#define SYSTEM_LOG   ::Logging::Logger()
 

Enumerations

enum  Logging::Outputs : unsigned { Logging::Out_Cout = 1u << 0 , Logging::Out_Clog = 1u << 1 , Logging::Out_File = 1u << 2 , Logging::Out_Panel = 1u << 3 }
 

Functions

LogLogging::Logger ()
 
bool Logging::InitLogger (const std::string &filename="olympe.log")
 
void Logging::ShutdownLogger ()
 
static std::string escape_json_string (const std::string &s)
 
static bool extract_json_string (const std::string &json, const std::string &key, std::string &out)
 
static bool extract_json_double (const std::string &json, const std::string &key, double &out)
 
static bool extract_json_int (const std::string &json, const std::string &key, int &out)
 
static bool extract_json_bool (const std::string &json, const std::string &key, bool &out)
 
void LoadOlympeConfig (const char *filename)
 

Macro Definition Documentation

◆ SYSTEM_LOG

#define SYSTEM_LOG   ::Logging::Logger()

Function Documentation

◆ escape_json_string()

static std::string escape_json_string ( const std::string s)
static

Definition at line 190 of file system_utils.h.

References GetComponentTypeID_Static().

Referenced by GameObject::Save().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ extract_json_bool()

static bool extract_json_bool ( const std::string json,
const std::string key,
bool out 
)
static

Definition at line 252 of file system_utils.h.

References GetComponentTypeID_Static().

Referenced by GameObject::Load().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ extract_json_double()

static bool extract_json_double ( const std::string json,
const std::string key,
double out 
)
static

Definition at line 228 of file system_utils.h.

References GetComponentTypeID_Static().

Referenced by extract_json_int(), and GameObject::Load().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ extract_json_int()

static bool extract_json_int ( const std::string json,
const std::string key,
int out 
)
static

Definition at line 244 of file system_utils.h.

References extract_json_double(), and GetComponentTypeID_Static().

Referenced by GameObject::Load(), and LoadOlympeConfig().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ extract_json_string()

static bool extract_json_string ( const std::string json,
const std::string key,
std::string out 
)
static

Definition at line 211 of file system_utils.h.

References GetComponentTypeID_Static().

Referenced by GameObject::Load().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadOlympeConfig()

void LoadOlympeConfig ( const char filename)