Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
ConfigLocation.h
Go to the documentation of this file.
1#pragma once
2#include <misc/gen/TClosure.h>
3#include <misc/global.h>
4#include <string>
5
6namespace sf
7{
8
13
20
30_MISC_FUNC std::string getConfigLocation(const std::string& option = {}, bool separator = false);
31
32}// namespace sf
Encapsulates the std::function() template.
Definition TClosure.h:14
#define _MISC_FUNC
Definition misc/global.h:39
Definition Application.h:10
_MISC_FUNC std::string getConfigLocation(const std::string &option={}, bool separator=false)
Gets the configuration location/directory of the application.
_MISC_FUNC void setConfigLocationHandler(const ConfigLocationClosure &handler={})
Sets the callback function for the getConfigLocation() function.
TClosure< std::string, const std::string & > ConfigLocationClosure
Type of the callback function.
Definition ConfigLocation.h:12