Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | 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:

Go to the source code of this file.

Classes

class  Logging::Log
 

Namespaces

namespace  Logging
 

Macros

#define SYSTEM_LOG   ::Logging::Logger()
 

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)
 
std::string ResolveResourcePath (const std::string &relativePath)
 

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 167 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 229 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 205 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 221 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 188 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)

◆ ResolveResourcePath()

std::string ResolveResourcePath ( const std::string relativePath)

Definition at line 81 of file system_utils.cpp.

References GetComponentTypeID_Static(), and SYSTEM_LOG.

Referenced by Olympe::ConditionPresetLibraryPanel::OnAddPresetClicked(), Olympe::ConditionPresetLibraryPanel::OnDeleteConfirmed(), and Olympe::ConditionPresetLibraryPanel::OnDuplicatePresetClicked().

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