RetroLinker
Linker for several 8-bit, 16-bit and 32-bit formats
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Runtime::Value Class Reference

A YAML/JSON-like data format. More...

#include <value.h>

Classes

struct  Empty
 

Public Types

typedef std::string String
 
typedef offset_t Integer
 
typedef bool Logical
 
typedef std::vector< Value > List
 
typedef std::map< std::string, Value > Table
 

Public Member Functions

 Value (const Empty &content)
 
 Value (const String &content)
 
 Value (const char *content)
 
 Value (Integer content)
 
 Value (Logical content)
 
 Value (const List &content)
 
 Value (const Table &content)
 
bool IsEmpty () const
 
String * GetString ()
 
const String * GetString () const
 
Integer * GetInteger ()
 
const Integer * GetInteger () const
 
Logical * GetLogical ()
 
const Logical * GetLogical () const
 
List * GetList ()
 
const List * GetList () const
 
Table * GetTable ()
 
const Table * GetTable () const
 
String ToString ()
 
Integer ToInteger ()
 
Value & operator[] (Value value)
 
const Value & operator[] (Value value) const
 

Static Public Member Functions

static Value MakeList ()
 
static Value MakeTable ()
 

Public Attributes

std::variant< Empty, String, Integer, Logical, List, Table > content
 

Detailed Description

A YAML/JSON-like data format.


The documentation for this class was generated from the following file: