Sirikata
Namespaces | Defines | Functions
libcore/src/options/CommonOptions.cpp File Reference
#include <sirikata/core/options/CommonOptions.hpp>
#include <sirikata/core/options/Options.hpp>
#include <sirikata/core/util/Time.hpp>
#include <sirikata/core/util/Timer.hpp>
#include <sys/types.h>
#include <unistd.h>
#include <boost/filesystem.hpp>
Include dependency graph for CommonOptions.cpp:

Namespaces

namespace  Sirikata
 

Note: All the classes provided in this file are thin wrappers around the corresponding classes in ASIO.


Defines

#define DEFINE_UNSAFE_GETOPTIONVALUE(T)

Functions

SIRIKATA_FUNCTION_EXPORT void Sirikata::ReportVersion ()
 Report version information to the log.
SIRIKATA_FUNCTION_EXPORT void Sirikata::InitOptions ()
SIRIKATA_FUNCTION_EXPORT void Sirikata::FakeParseOptions ()
SIRIKATA_FUNCTION_EXPORT void Sirikata::ParseOptions (int argc, char **argv, UnregisteredOptionBehavior unreg=FailOnUnregisteredOptions)
SIRIKATA_FUNCTION_EXPORT void Sirikata::ParseOptionsFile (const String &fname, bool required=true, UnregisteredOptionBehavior unreg=FailOnUnregisteredOptions)
SIRIKATA_FUNCTION_EXPORT void Sirikata::ParseOptions (int argc, char **argv, const String &config_file_option, UnregisteredOptionBehavior unreg=FailOnUnregisteredOptions)
 Parse command line options and config files, ensuring the command line arguments take priority but reading the config file from an option rather than hard coding it.
SIRIKATA_FUNCTION_EXPORT void Sirikata::FillMissingOptionDefaults ()
 Fills in default values, used after initial parsing to make sure we don't block overriding option values from a secondary source (e.g.
SIRIKATA_FUNCTION_EXPORT void Sirikata::DaemonizeAndSetOutputs ()
 Daemonizes the process if requested and then sets up output, e.g.
SIRIKATA_FUNCTION_EXPORT void Sirikata::DaemonCleanup ()
SIRIKATA_FUNCTION_EXPORT
OptionValue * 
Sirikata::GetOption (const char *name)
SIRIKATA_FUNCTION_EXPORT
OptionValue * 
Sirikata::GetOption (const char *klass, const char *name)
template<typename T >
Sirikata::GetOptionValueUnsafe (const char *name)
SIRIKATA_FUNCTION_EXPORT String Sirikata::GetPerServerString (const String &orig, const ServerID &sid)
SIRIKATA_FUNCTION_EXPORT String Sirikata::GetPerServerFile (const char *opt_name, const ServerID &sid)
 Get an option which is a filename and modify it to be server specific.
SIRIKATA_FUNCTION_EXPORT String Sirikata::GetPerServerFile (const char *opt_name, const ObjectHostID &ohid)

Define Documentation

#define DEFINE_UNSAFE_GETOPTIONVALUE (   T)
Value:
template<>                                                          \
    T GetOptionValue<T>(const char* name) { return GetOptionValueUnsafe<T>(name); }