Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

variant.hpp File Reference

#include <string>
#include <sstream>
#include <map>

Go to the source code of this file.

Namespaces

namespace  s11n
namespace  s11n::Detail
namespace  s11n::Detail::Private

Classes

struct  s11n::Detail::variant
 variant provides a really convenient way to lexically cast strings and other streamable types to/from each other. More...

Defines

#define s11n_net_s11n_VARIANT_HPP_INCLUDED   1

Functions

template<typename value_type>
value_type s11n::Detail::Private::from_string (const std::string &str, const value_type &errorVal) throw ()
 Lexically casts str to a value_type, returning errorVal if the conversion fails.
template<typename value_type>
std::string s11n::Detail::Private::to_string (const value_type &obj) throw ()
 Returns a string representation of the given object, which must be ostreamble.
std::string s11n::Detail::Private::from_string (const std::string &str, const std::string &) throw ()
 Convenience/efficiency overload.
std::string s11n::Detail::Private::from_string (const char *str, const char *) throw ()
 Convenience/efficiency overload.
std::string s11n::Detail::Private::to_string (const char *obj) throw ()
 Convenience/efficiency overload.
std::string s11n::Detail::Private::to_string (const std::string &obj) throw ()
 Convenience/efficiency overload.


Define Documentation

#define s11n_net_s11n_VARIANT_HPP_INCLUDED   1
 

Definition at line 2 of file variant.hpp.


Generated on Sat Dec 10 13:33:58 2005 for libs11n-1.2.1 by  doxygen 1.4.4