Device Class Reference

Device key. More...

#include "keyvalue/bridge/key/Device.h"

Inheritance diagram for Device:
Inheritance graph
[legend]

List of all members.

Public Types

enum  
typedef Traits
< logger::Logger::Device,
StdSingle, FlagMap
Traits_
typedef StdSingle< typename
FlagMap
< logger::Logger::Device >
::OutputType_ > 
ConverterType_
typedef ConverterType_::InputType_ InputType_
typedef ConverterType_::OutputType_ OutputType_

Public Member Functions

logger::Logger::Device get (const string &name) const
 Partially maps names into flags.
string getName () const
 Gets Key's name.
void setName (const string &name)
 Sets name.
logger::Logger::Device map (const value::Variant &variant) const
 Performs the mapping.

Detailed Description

Device key.

Key's name is "Device".


Member Function Documentation

logger::Logger::Device get ( const string &  name  )  const [virtual]

Partially maps names into flags.

Maps "Console", "File", and "Standard", resp., to Console, File, and Standard.

Parameters:
name : Name to be mapped;
Returns:
Flag corresponding to name.
Exceptions:
RuntimeError : If name is unknown.

Implements FlagMap< logger::Logger::Device >.

string getName (  )  const [inherited]

Gets Key's name.

Returns:
The Key's name.

Reimplemented from Key.

void setName ( const string &  name  )  [inherited]

Sets name.

Parameters:
name : The name.
logger::Logger::Device map ( const value::Variant variant  )  const [inherited]

Performs the mapping.

This method converts the input from value::Variant to string and calls get().

Parameters:
variant : A value::Variant containing the input string to be mapped.
Returns:
The mapping result.

Generated on Sat Mar 20 15:08:30 2010 for KeyValue by  doxygen 1.6.1