![]() |
PERRY v1.0.0
P-E-R-R-Y/PERRY helps creating games with a bunch of tools.
|
Topics | |
Json | |
Yaml | |
Namespaces | |
namespace | serial |
namespace serial | |
Classes | |
class | serial::Node |
easy to Manage YAML, JSON, XAML and data serialization formats in C++. More... | |
interface | serial::ISerial |
Interface for Serial. More... | |
class | serial::SerialSharedLoader |
Use to dynamicaly load Serial shared library. More... | |
Typedefs | |
using | serial::Node::node_type = std::variant<bool, int, double, std::string, std::vector<Node>, std::map<std::string, Node>, void *> |
using | serial::SerialSharedLoader::Params = std::string |
Functions | |
serial::Node::Node (node_type node) | |
bool | serial::Node::isScalar () |
bool | serial::Node::isSequence () |
bool | serial::Node::isMap () |
bool | serial::Node::isBool () |
bool | serial::Node::isInt () |
bool | serial::Node::isDouble () |
bool | serial::Node::isString () |
bool | serial::Node::isNull () |
Node | serial::Node::operator[] (const std::string &key) |
Node | serial::Node::operator[] (const int &index) |
template<typename T> | |
T | serial::Node::as () |
virtual | serial::ISerial::~ISerial ()=default |
Destroy the ISerial object. | |
virtual void | serial::ISerial::load (const std::string &path)=0 |
virtual method to load a file | |
virtual bool | serial::ISerial::isLoaded ()=0 |
virtual method to know if the file is loaded | |
virtual void | serial::ISerial::close ()=0 |
virtual method to close a file | |
virtual Node | serial::ISerial::getRoot ()=0 |
virtual method to get the root node | |
serial::SerialSharedLoader::SerialSharedLoader (Params file) | |
Variables | |
node_type | serial::Node::value |
ISerial *(* | serial::SerialSharedLoader::createSerial )(int, int, std::string) |
Window. | |
void(* | serial::SerialSharedLoader::deleteSerial )(ISerial *window) |
|
pure virtual |
|
pure virtual |
|
pure virtual |
virtual method to know if the file is loaded
path |
Implemented in JsonSerial, and YamlSerial.
|
pure virtual |
|
virtualdefault |
Destroy the ISerial object.
path |