Apache Mesos
Public Types | Public Member Functions | Public Attributes | Protected Attributes | List of all members
flags::FlagsBase Class Reference

#include <flags.hpp>

Inheritance diagram for flags::FlagsBase:
mesos::internal::logger::LoggerFlags mesos::internal::logger::rotate::Flags mesos::internal::logging::Flags mesos::internal::slave::IOSwitchboardServer::Flags mesos::internal::slave::MesosContainerizerLaunch::Flags mesos::internal::slave::MesosContainerizerMount::Flags mesos::internal::slave::NetworkCniIsolatorSetup::Flags mesos::internal::slave::PortMappingStatistics::Flags mesos::internal::slave::PortMappingUpdate::Flags mesos::internal::storage::UriDiskProfileAdaptor::Flags mesos::internal::tests::ActiveUserTestHelper::Flags mesos::internal::tests::CapabilitiesTestHelper::Flags mesos::internal::tests::HttpServerTestHelper::Flags mesos::internal::tests::KillPolicyTestHelper::Flags mesos::uri::CopyFetcherPlugin::Flags mesos::uri::CurlFetcherPlugin::Flags mesos::uri::DockerFetcherPlugin::Flags mesos::uri::HadoopFetcherPlugin::Flags systemd::Flags

Public Types

typedef std::map< std::string, Flag >::const_iterator const_iterator
 
typedef std::map< std::string, Flag >::iterator iterator
 

Public Member Functions

 FlagsBase ()
 
virtual ~FlagsBase ()=default
 
 FlagsBase (const FlagsBase &)=default
 
 FlagsBase (FlagsBase &&)=delete
 
FlagsBaseoperator= (const FlagsBase &)=default
 
FlagsBaseoperator= (FlagsBase &&)=delete
 
virtual Try< Warningsload (const std::string &prefix)
 
virtual Try< Warningsload (const Option< std::string > &prefix, int argc, const char *const *argv, bool unknowns=false, bool duplicates=false)
 
virtual Try< Warningsload (const Option< std::string > &prefix, int *argc, char ***argv, bool unknowns=false, bool duplicates=false)
 
virtual Try< Warningsload (const std::map< std::string, Option< std::string >> &values, bool unknowns=false, const Option< std::string > &prefix=None())
 
virtual Try< Warningsload (const std::map< std::string, std::string > &values, bool unknowns=false, const Option< std::string > &prefix=None())
 
std::string usage (const Option< std::string > &message=None()) const
 
void setUsageMessage (const std::string &message)
 
const_iterator begin () const
 
const_iterator end () const
 
iterator begin ()
 
iterator end ()
 
template<typename Flags , typename T1 , typename T2 , typename F >
void add (T1 Flags::*t1, const Name &name, const Option< Name > &alias, const std::string &help, const T2 *t2, F validate)
 
template<typename Flags , typename T1 , typename T2 , typename F >
void add (T1 Flags::*t1, const Name &name, const Option< Name > &alias, const std::string &help, const T2 &t2, F validate)
 
template<typename Flags , typename T1 , typename T2 , typename F >
void add (T1 Flags::*t1, const Name &name, const std::string &help, const T2 &t2, F validate)
 
template<typename Flags , typename T1 , typename T2 >
void add (T1 Flags::*t1, const Name &name, const std::string &help, const T2 &t2)
 
template<typename Flags , typename T >
void add (T Flags::*t, const Name &name, const std::string &help)
 
template<typename Flags , typename T1 , typename T2 >
void add (T1 Flags::*t1, const Name &name, const Option< Name > &alias, const std::string &help, const T2 &t2)
 
template<typename Flags , typename T , typename F >
void add (Option< T > Flags::*option, const Name &name, const Option< Name > &alias, const std::string &help, F validate)
 
template<typename Flags , typename T , typename F >
void add (Option< T > Flags::*option, const Name &name, const std::string &help, F validate)
 
template<typename Flags , typename T >
void add (Option< T > Flags::*option, const Name &name, const std::string &help)
 
template<typename Flags , typename T >
void add (Option< T > Flags::*option, const Name &name, const Option< Name > &alias, const std::string &help)
 
void add (const Flag &flag)
 
std::map< std::string, Option< std::string > > extract (const std::string &prefix) const
 
std::map< std::string, std::string > buildEnvironment (const Option< std::string > &prefix=None()) const
 

Public Attributes

bool help
 

Protected Attributes

std::string programName_
 
Option< std::string > usageMessage_
 

Member Typedef Documentation

typedef std::map<std::string, Flag>::const_iterator flags::FlagsBase::const_iterator
typedef std::map<std::string, Flag>::iterator flags::FlagsBase::iterator

Constructor & Destructor Documentation

flags::FlagsBase::FlagsBase ( )
inline
virtual flags::FlagsBase::~FlagsBase ( )
virtualdefault
flags::FlagsBase::FlagsBase ( const FlagsBase )
default
flags::FlagsBase::FlagsBase ( FlagsBase &&  )
delete

Member Function Documentation

template<typename Flags , typename T1 , typename T2 , typename F >
void flags::FlagsBase::add ( T1 Flags::*  t1,
const Name name,
const Option< Name > &  alias,
const std::string &  help,
const T2 *  t2,
validate 
)
template<typename Flags , typename T1 , typename T2 , typename F >
void flags::FlagsBase::add ( T1 Flags::*  t1,
const Name name,
const Option< Name > &  alias,
const std::string &  help,
const T2 &  t2,
validate 
)
inline
template<typename Flags , typename T1 , typename T2 , typename F >
void flags::FlagsBase::add ( T1 Flags::*  t1,
const Name name,
const std::string &  help,
const T2 &  t2,
validate 
)
inline
template<typename Flags , typename T1 , typename T2 >
void flags::FlagsBase::add ( T1 Flags::*  t1,
const Name name,
const std::string &  help,
const T2 &  t2 
)
inline
template<typename Flags , typename T >
void flags::FlagsBase::add ( T Flags::*  t,
const Name name,
const std::string &  help 
)
inline
template<typename Flags , typename T1 , typename T2 >
void flags::FlagsBase::add ( T1 Flags::*  t1,
const Name name,
const Option< Name > &  alias,
const std::string &  help,
const T2 &  t2 
)
inline
template<typename Flags , typename T , typename F >
void flags::FlagsBase::add ( Option< T > Flags::*  option,
const Name name,
const Option< Name > &  alias,
const std::string &  help,
validate 
)
template<typename Flags , typename T , typename F >
void flags::FlagsBase::add ( Option< T > Flags::*  option,
const Name name,
const std::string &  help,
validate 
)
inline
template<typename Flags , typename T >
void flags::FlagsBase::add ( Option< T > Flags::*  option,
const Name name,
const std::string &  help 
)
inline
template<typename Flags , typename T >
void flags::FlagsBase::add ( Option< T > Flags::*  option,
const Name name,
const Option< Name > &  alias,
const std::string &  help 
)
inline
void flags::FlagsBase::add ( const Flag flag)
inline
const_iterator flags::FlagsBase::begin ( ) const
inline
iterator flags::FlagsBase::begin ( )
inline
std::map< std::string, std::string > flags::FlagsBase::buildEnvironment ( const Option< std::string > &  prefix = None()) const
inline
const_iterator flags::FlagsBase::end ( ) const
inline
iterator flags::FlagsBase::end ( )
inline
std::map< std::string, Option< std::string > > flags::FlagsBase::extract ( const std::string &  prefix) const
inline
Try< Warnings > flags::FlagsBase::load ( const std::string &  prefix)
inlinevirtual
Try< Warnings > flags::FlagsBase::load ( const Option< std::string > &  prefix,
int  argc,
const char *const *  argv,
bool  unknowns = false,
bool  duplicates = false 
)
inlinevirtual
Try< Warnings > flags::FlagsBase::load ( const Option< std::string > &  prefix,
int *  argc,
char ***  argv,
bool  unknowns = false,
bool  duplicates = false 
)
inlinevirtual
Try< Warnings > flags::FlagsBase::load ( const std::map< std::string, Option< std::string >> &  values,
bool  unknowns = false,
const Option< std::string > &  prefix = None() 
)
inlinevirtual
Try< Warnings > flags::FlagsBase::load ( const std::map< std::string, std::string > &  values,
bool  unknowns = false,
const Option< std::string > &  prefix = None() 
)
inlinevirtual
FlagsBase& flags::FlagsBase::operator= ( const FlagsBase )
default
FlagsBase& flags::FlagsBase::operator= ( FlagsBase &&  )
delete
void flags::FlagsBase::setUsageMessage ( const std::string &  message)
inline
std::string flags::FlagsBase::usage ( const Option< std::string > &  message = None()) const
inline

Member Data Documentation

bool flags::FlagsBase::help
std::string flags::FlagsBase::programName_
protected
Option<std::string> flags::FlagsBase::usageMessage_
protected

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