BusBoy  2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | List of all members
BUSBOY::BusboyEnvironment Class Reference

Singleton for managing environmental properties. More...

#include <BusboyEnvironment.h>

Public Types

enum  EnvSet { RUNTIME, JAVA, CUSTOM, RAW }
 

Public Member Functions

void addPropertySet (EnvSet envSet, const Properties &props)
 
Properties getProperties (EnvSet envSet) const
 
 ~BusboyEnvironment ()
 

Static Public Member Functions

static BusboyEnvironmentinstance ()
 
static EnvSet enumFromString (const std::string &strEnvSet)
 Parses the string equivalent of the enum. More...
 
static std::string enumToString (EnvSet envSet)
 Returns the string equivalent of the enum. More...
 
static std::string getVariablePrefix (EnvSet envSet)
 
static std::string getVariableName (EnvSet envSet, const std::string &name)
 

Detailed Description

Singleton for managing environmental properties.

Member Enumeration Documentation

Enumerator
RUNTIME 

Busboy runtime properties: busboy.runtime.XXX.

JAVA 

Java system properties: busboy.java.XXX.

CUSTOM 

Custom properties: busboy.custom.XXX.

RAW 

Raw properties: XXX.

Constructor & Destructor Documentation

BUSBOY::BusboyEnvironment::~BusboyEnvironment ( )

Member Function Documentation

void BUSBOY::BusboyEnvironment::addPropertySet ( EnvSet  envSet,
const Properties props 
)
BusboyEnvironment::EnvSet BUSBOY::BusboyEnvironment::enumFromString ( const std::string &  strEnvSet)
static

Parses the string equivalent of the enum.

For example: "JAVA" –> JAVA

std::string BUSBOY::BusboyEnvironment::enumToString ( EnvSet  envSet)
static

Returns the string equivalent of the enum.

For example: JAVA –> "JAVA"

Properties BUSBOY::BusboyEnvironment::getProperties ( EnvSet  envSet) const
std::string BUSBOY::BusboyEnvironment::getVariableName ( EnvSet  envSet,
const std::string &  name 
)
static
std::string BUSBOY::BusboyEnvironment::getVariablePrefix ( EnvSet  envSet)
static
BusboyEnvironment & BUSBOY::BusboyEnvironment::instance ( )
static

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

Copyright 2014 Google Inc. All rights reserved.