pianod2
multisource multiuser scriptable networked music player
Namespaces | Macros | Functions | Variables
parsnip_schema.cpp File Reference
#include <string>
#include <vector>
#include <set>
#include <unordered_map>
#include <type_traits>
#include <cctype>
#include <cstring>
#include <algorithm>
#include "parsnip.h"
#include "parsnip_command.h"
#include "parsnip_schema.h"
#include "parsnip_evaluate.h"
#include "parsnip_helpers.h"
Include dependency graph for parsnip_schema.cpp:

Namespaces

 Parsnip
 Serialization and parsing library.
 

Macros

#define REGEX_DATE   "[0-9]{4}-(0[1-9]|1[0-2])-[0-4][0-9]"
 
#define REGEX_TIME   "([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]\\+(0[0-9]|1[0-3]):[0-5][0-9]"
 

Functions

static SchemaBase * Parsnip::construct_schema (const Parsnip::Data &schema_spec)
 Assemble a schema from a specification. More...
 
static DictionarySchema * Parsnip::asDictionary (const SchemaBaseRef &schema)
 Verify the schema is the dictionary we expect, and return it typecast as such. More...
 

Variables

static const std::unordered_map< std::string, std::string > Parsnip::RegExForFormat
 Regular expressions for JSON strings that specify a format. More...
 

Macro Definition Documentation

◆ REGEX_DATE

#define REGEX_DATE   "[0-9]{4}-(0[1-9]|1[0-2])-[0-4][0-9]"

◆ REGEX_TIME

#define REGEX_TIME   "([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]\\+(0[0-9]|1[0-3]):[0-5][0-9]"