The Sparta Modeling Framework
Loading...
Searching...
No Matches
FeatureConfiguration.hpp File Reference
#include "sparta/simulation/ParameterTree.hpp"
#include "sparta/utils/SpartaException.hpp"
#include "sparta/utils/StringUtils.hpp"
#include "sparta/utils/MetaStructs.hpp"
#include <iostream>
#include <fstream>
#include <memory>
#include <boost/lexical_cast.hpp>

Go to the source code of this file.

Classes

class  sparta::app::FeatureConfiguration
 Collection of named feature values. More...
 
class  sparta::app::FeatureConfiguration::FeatureOptions
 

Namespaces

namespace  sparta
 Macros for handling exponential backoff.
 
namespace  sparta::app
 Sparta Application framework.
 

Functions

template<typename T >
std::enable_if< std::is_same< T, app::FeatureConfiguration >::value, bool >::type sparta::IsFeatureValueEqualTo (const T &cfg, const std::string &feature_name, const unsigned int feature_value)
 
template<typename T >
std::enable_if< MetaStruct::is_any_pointer< T >::value, bool >::type sparta::IsFeatureValueEqualTo (const T &cfg, const std::string &feature_name, const unsigned int feature_value)
 
template<typename T >
std::enable_if< std::is_same< T, app::FeatureConfiguration >::value, bool >::type sparta::IsFeatureValueEnabled (const T &cfg, const std::string &feature_name)
 
template<typename T >
std::enable_if< MetaStruct::is_any_pointer< T >::value, bool >::type sparta::IsFeatureValueEnabled (const T &cfg, const std::string &feature_name)
 
template<typename T >
std::enable_if< std::is_same< T, app::FeatureConfiguration >::value, constapp::FeatureConfiguration::FeatureOptions * >::type sparta::GetFeatureOptions (const T &cfg, const std::string &feature_name)
 
template<typename T >
std::enable_if< MetaStruct::is_any_pointer< T >::value, constapp::FeatureConfiguration::FeatureOptions * >::type sparta::GetFeatureOptions (const T &cfg, const std::string &feature_name)
 

Detailed Description

Class for configuring feature values. Used together with the command-line "--feature <name> value" option.

Definition in file FeatureConfiguration.hpp.