AnyCollect  1.1.2
AnyCollect::Config Struct Reference

Struct used to represent the JSON configuration file. More...

#include <Config.h>

Collaboration diagram for AnyCollect::Config:

Classes

struct  command
 
struct  expression
 
struct  file
 

Public Types

using filesType = std::vector< nlohmann::json >
 
using commandsType = std::vector< nlohmann::json >
 

Public Member Functions

 Config (const std::string &path) noexcept
 Parses the specified config file into a Config object. More...
 

Public Attributes

std::vector< Config::filefiles
 
std::vector< Config::commandcommands
 

Static Public Attributes

static constexpr std::string_view filesKey = "Files"sv
 
static constexpr std::string_view commandsKey = "Commands"sv
 

Detailed Description

Struct used to represent the JSON configuration file.

Definition at line 35 of file Config.h.

Member Typedef Documentation

◆ commandsType

using AnyCollect::Config::commandsType = std::vector<nlohmann::json>

Definition at line 93 of file Config.h.

◆ filesType

using AnyCollect::Config::filesType = std::vector<nlohmann::json>

Definition at line 91 of file Config.h.

Constructor & Destructor Documentation

◆ Config()

AnyCollect::Config::Config ( const std::string &  path)
noexcept

Parses the specified config file into a Config object.

Parameters
pathpath of the config file to parse

Definition at line 26 of file Config.cc.

Here is the call graph for this function:

Member Data Documentation

◆ commands

std::vector<Config::command> AnyCollect::Config::commands

Definition at line 96 of file Config.h.

◆ commandsKey

constexpr std::string_view AnyCollect::Config::commandsKey = "Commands"sv
static

Definition at line 92 of file Config.h.

◆ files

std::vector<Config::file> AnyCollect::Config::files

Definition at line 95 of file Config.h.

◆ filesKey

constexpr std::string_view AnyCollect::Config::filesKey = "Files"sv
static

Definition at line 90 of file Config.h.


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