fson  1.0.2
A comment-preserving C++ library for FSON — a human-friendly superset of JSON / JSON5
fedem::fson::Fson Class Referencefinal

#include <Fson.hh>

Classes

struct  LoadResult
 
class  Snapshot
 

Public Types

enum class  StaleMode { MtimeSize , ContentHash }
 

Static Public Member Functions

static LoadResult load (std::string const &filename)
 
static std::set< std::string > dependenciesOf (std::string const &filename)
 
static Snapshot snapshot (std::string const &filename)
 
static bool isStale (std::string const &filename, Snapshot const &snap, StaleMode mode=StaleMode::MtimeSize)
 
static bool save (Document const &document, std::string const &filename)
 

Private Member Functions

 Fson ()=delete
 

Member Enumeration Documentation

◆ StaleMode

Enumerator
MtimeSize 
ContentHash 

Constructor & Destructor Documentation

◆ Fson()

fedem::fson::Fson::Fson ( )
privatedelete

Member Function Documentation

◆ load()

◆ dependenciesOf()

std::set< string > fedem::fson::Fson::dependenciesOf ( std::string const &  filename)
static

References fedem::fson::IncludeResolver::dependencySet(), fedem::fson::FsonParser::parseFile(), and fedem::fson::IncludeResolver::resolve().

+ Here is the call graph for this function:

◆ snapshot()

Fson::Snapshot fedem::fson::Fson::snapshot ( std::string const &  filename)
static

◆ isStale()

◆ save()

bool fedem::fson::Fson::save ( Document const &  document,
std::string const &  filename 
)
static

References fedem::fson::FsonWriter::writeFile().

+ Here is the call graph for this function:

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