RDFS
The Rice Comp413 2017 class' continuation on the work of the 2016 RDFS.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Friends | List of all members
el::base::utils::CommandLineArgs Class Reference

Command line arguments for application if specified using el::Helpers::setArgs(..) or START_EASYLOGGINGPP(..) More...

#include <easylogging++.h>

Public Member Functions

 CommandLineArgs (int argc, const char **argv)
 
 CommandLineArgs (int argc, char **argv)
 
void setArgs (int argc, const char **argv)
 Sets arguments and parses them.
 
void setArgs (int argc, char **argv)
 Sets arguments and parses them.
 
bool hasParamWithValue (const char *paramKey) const
 Returns true if arguments contain paramKey with a value (seperated by '=')
 
const char * getParamValue (const char *paramKey) const
 Returns value of arguments. More...
 
bool hasParam (const char *paramKey) const
 Return true if arguments has a param (not having a value) i,e without '='.
 
bool empty (void) const
 Returns true if no params available. This exclude argv[0].
 
std::size_t size (void) const
 Returns total number of arguments. This exclude argv[0].
 

Friends

base::type::ostream_t & operator<< (base::type::ostream_t &os, const CommandLineArgs &c)
 

Detailed Description

Command line arguments for application if specified using el::Helpers::setArgs(..) or START_EASYLOGGINGPP(..)

Member Function Documentation

const char * el::base::utils::CommandLineArgs::getParamValue ( const char *  paramKey) const

Returns value of arguments.

See Also
hasParamWithValue(const char*)

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