Traits.hh File Reference

Traits public header. More...

#include <iostream>
#include <boost/intrusive_ptr.hpp>
#include <boost/type_traits/is_same.hpp>
#include <senf/Utils/intrusive_refcount.hh>
#include "Parse.hh"
#include "Traits.ih"
#include "Traits.cci"
#include "Traits.ct"
#include "Traits.cti"

Include dependency graph for Traits.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Detailed Description

Traits public header.

Definition in file Traits.hh.


Classes

struct   senf::console::ArgumentTraits< Type >
  Customize argument parsing. More...
struct   senf::console::ReturnValueTraits< Type >
  Customize return value formating. More...

Namespaces

namespace   senf
namespace   senf::console

Defines

#define  HH_SENF_Scheduler_Console_Traits_   1
#define  SENF_CONSOLE_REGISTER_ENUM(Type, Values)   SENF_CONSOLE_REGISTER_ENUM_(BOOST_PP_EMPTY(), Type, Values)
  Register enum type for argument parsing.
#define  SENF_CONSOLE_REGISTER_ENUM_MEMBER(Class, Type, Values)   SENF_CONSOLE_REGISTER_ENUM_(Class::, Type, Values)
  Register enum type for argument parsing.

Functions

template<class Type >
void  senf::console::parse (ParseCommandInfo::TokensRange const &tokens, Type &out)
  Parse token range.
template<class Type >
std::string  senf::console::str (Type const &value)
  Format value.
template<class Type >
void  senf::console::format (Type const &value, std::ostream &os)
  Format return value.
void  senf::console::formatTrueFalse (bool value, std::ostream &os)
  Format boolean value as true / false.
void  senf::console::formatYesNo (bool value, std::ostream &os)
  Format boolean value as yes / no.
void  senf::console::formatEnabledDisabled (bool value, std::ostream &os)
  Format boolean value as enabled / disabled.
void  senf::console::formatOnOff (bool value, std::ostream &os)
  Format boolean value as on / off.
void  senf::console::formatOneZero (bool value, std::ostream &os)
  Format boolean value as 1 / 0.

Define Documentation

#define
HH_SENF_Scheduler_Console_Traits_   1

Definition at line 27 of file Traits.hh.