AnCH Framework 0.1
Another C++ Hack Framework
Loading...
Searching...
No Matches
anch::conf::Placeholders Class Reference

Register placeholders. More...

#include <placeholders.hpp>

Inheritance diagram for anch::conf::Placeholders:
Collaboration diagram for anch::conf::Placeholders:

Public Member Functions

 Placeholders ()=delete
 Placeholders (const Placeholders &other)=delete
 Placeholders (Placeholders &&other)=delete
 Placeholders (anch::conf::Section &section) noexcept
virtual ~Placeholders () noexcept
bool collect ()
void resolve ()

Detailed Description

Register placeholders.

This class aims to collect and resvol placeholders

Since
0.1
Author
Vincent Lachenal

Constructor & Destructor Documentation

◆ Placeholders() [1/4]

anch::conf::Placeholders::Placeholders ( )
delete

Forbids Placeholders default constructor

◆ Placeholders() [2/4]

anch::conf::Placeholders::Placeholders ( const Placeholders & other)
delete

Forbids Placeholders copy constructor

Parameters
otherPlaceholders not to copy
Here is the call graph for this function:

◆ Placeholders() [3/4]

anch::conf::Placeholders::Placeholders ( Placeholders && other)
delete

Forbids Placeholders move constructor

Parameters
otherPlaceholders not to move
Here is the call graph for this function:

◆ Placeholders() [4/4]

anch::conf::Placeholders::Placeholders ( anch::conf::Section & section)
noexcept

Placeholders constructor

Parameters
sectionthe section to analyze

◆ ~Placeholders()

virtual anch::conf::Placeholders::~Placeholders ( )
virtualnoexcept

Placeholders destructor

Member Function Documentation

◆ collect()

bool anch::conf::Placeholders::collect ( )

Collect placeholders from 'root' anch::conf::Section

Returns
true when placeholders has been detected, false otherwise
Exceptions
anch::conf::ConfErroron file open or resolution error (codes: RES_NOT_FOUND)
Here is the call graph for this function:

◆ resolve()

void anch::conf::Placeholders::resolve ( )

Resolve all placeholders

Exceptions
anch::conf::ConfErroron file open or resolution error (codes: NOT_RES)
Here is the call graph for this function:

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