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

Placeholder items. More...

#include <subplaceholder.hpp>

Inheritance diagram for anch::conf::SubPlaceholder:
Collaboration diagram for anch::conf::SubPlaceholder:

Public Member Functions

 SubPlaceholder () noexcept
virtual ~SubPlaceholder () noexcept
virtual void handle (const anch::events::Event< anch::conf::ResConfEvt > &event) noexcept
bool resvoled () noexcept

Public Attributes

std::string res
std::string arg
std::optional< std::string > val = std::optional<std::string>()

Detailed Description

Placeholder items.

Placeholder items contain the resolver (empty when default value) and argument

Since
0.1
Author
Vincent Lachenal

Constructor & Destructor Documentation

◆ SubPlaceholder()

anch::conf::SubPlaceholder::SubPlaceholder ( )
noexcept

SubPlaceholder default constructor

◆ ~SubPlaceholder()

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

SubPlaceholder desctructor

Here is the call graph for this function:

Member Function Documentation

◆ handle()

virtual void anch::conf::SubPlaceholder::handle ( const anch::events::Event< anch::conf::ResConfEvt > & event)
virtualnoexcept

Handle anch::conf::ResConfEvt event

Parameters
eventthe event to manage

Implements anch::events::Observer< anch::conf::ResConfEvt >.

Here is the call graph for this function:

◆ resvoled()

bool anch::conf::SubPlaceholder::resvoled ( )
noexcept

Placeholder item has been resolved

Returns
true
Here is the call graph for this function:

Member Data Documentation

◆ arg

std::string anch::conf::SubPlaceholder::arg

Resolver argument

◆ res

std::string anch::conf::SubPlaceholder::res

Resolver (empty when default value)

◆ val

std::optional<std::string> anch::conf::SubPlaceholder::val = std::optional<std::string>()

The found value (default to empty => not found)


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