PIP 6.1.0
Platform-Independent Primitives
Loading...
Searching...
No Matches
PIValueTreeConversions Namespace Reference

Namespace with conversions between PIValueTree and other public serialization formats. More...

Typedefs

typedef PIFlags< Option > Options
 Bit mask of PIValueTree conversion options.

Enumerations

enum  Option
 Conversion options.

Functions

PIValueTree fromPropertyStorage (const PIPropertyStorage &ps)
 Builds a tree from flat PIPropertyStorage entries.
PIValueTree fromVariantMap (const PIVariantMap &vm)
 Builds a tree whose top-level children come from a PIVariantMap.
PIValueTree fromJSON (const PIJSON &json)
 Converts JSON tree representation produced by this module into PIValueTree.
PIValueTree fromText (PIIODevice *device)
 Parses PIP text configuration format from a device into PIValueTree.
PIValueTree fromText (const PIString &str)
 Parses PIP text configuration format from a string into PIValueTree.
PIValueTree fromJSONFile (const PIString &path)
 Loads JSON tree text from file and merges an optional .override companion file when it exists.
PIValueTree fromTextFile (const PIString &path)
 Loads text tree configuration from file and merges an optional .override companion file when it exists.
PIJSON toJSON (const PIValueTree &root, Options options=Default)
 Converts PIValueTree to the module JSON tree representation.
PIString toText (const PIValueTree &root, Options options=Default)
 Converts PIValueTree to the PIP text configuration format.
bool toJSONFile (const PIString &path, const PIValueTree &root, Options options=Default)
 Writes JSON tree text to file. Returns true when the whole output was written.
bool toTextFile (const PIString &path, const PIValueTree &root, Options options=Default)
 Writes text tree configuration to file. Returns true when the whole output was written.

Detailed Description

Namespace with conversions between PIValueTree and other public serialization formats.