Skip to content

Class TempLat::FileToJSON

ClassList > TempLat > FileToJSON

A class which reads a file which contains valid JSON, and parses it into a json::JSON object.More...

  • #include <filetojson.h>

Inherits the following classes: json::JSON

Public Types inherited from json::JSON

See json::JSON

Type Name
enum Class

Public Functions

Type Name
FileToJSON (const std::string fname)

Public Functions inherited from json::JSON

See json::JSON

Type Name
JSONWrapper< deque< JSON > > ArrayRange ()
JSONConstWrapper< deque< JSON > > ArrayRange () const
void EraseByValue (T val)
bool IsNull () const
Functions for getting primitives from the JSON object.
JSON ()
JSON (initializer_list< JSON > list)
JSON (JSON && other)
JSON (const JSON & other)
JSON (T b, typename enable_if< is_same< T, bool >::value >::type *=0)
JSON (T i, typename enable_if< is_integral< T >::value &&!is_same< T, bool >::value >::type *=0)
JSON (T f, typename enable_if< is_floating_point< T >::value >::type *=0)
JSON (T s, typename enable_if< is_convertible< T, string >::value >::type *=0)
JSON (std::nullptr_t)
Class JSONType () const
JSONWrapper< map< string, JSON > > ObjectRange ()
JSONConstWrapper< map< string, JSON > > ObjectRange () const
bool ToBool () const
bool ToBool (bool & ok) const
double ToFloat () const
double ToFloat (bool & ok) const
long ToInt () const
long ToInt (bool & ok) const
string ToString () const
string ToString (bool & ok) const
std::enable_if< std::is_floating_point< T >::value, T >::type Value ()
std::enable_if< std::is_integral< T >::value, T >::type Value ()
std::enable_if< std::is_same< T, bool >::value, T >::type Value ()
std::enable_if< std::is_same< T, std::string >::value, T >::type Value ()
bool ValueAsBoolean () const
double ValueAsFloating () const
long long int ValueAsIntegral () const
string ValueAsString () const
void append (T arg)
void append (T arg, U... args)
JSON & at (const string & key)
const JSON & at (const string & key) const
JSON & at (unsigned index)
const JSON & at (unsigned index) const
string dump (int depth=1, string tab=" ") const
bool hasKey (const string & key) const
int length () const
JSON & operator= (JSON && other)
JSON & operator= (const JSON & other)
enable_if< is_same< T, bool >::value, JSON & >::type operator= (T b)
enable_if< is_integral< T >::value &&!is_same< T, bool >::value, JSON & >::type operator= (T i)
enable_if< is_floating_point< T >::value, JSON & >::type operator= (T f)
enable_if< is_convertible< T, string >::value, JSON & >::type operator= (T s)
JSON & operator[] (const string & key)
JSON & operator[] (unsigned index)
int size () const
int size_nonnull () const
~JSON ()

Public Static Functions inherited from json::JSON

See json::JSON

Type Name
const char * ClassString (Class c)
JSON Load (const string & str)
JSON Make (Class type)

Detailed Description

Unit test: ctest -R test-filetojson

Public Functions Documentation

function FileToJSON

inline TempLat::FileToJSON::FileToJSON (
    const std::string fname
) 


The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/templat/include/TempLat/util/json/filetojson.h