Savarese Software Research Corporation
utility::StringTo Class Reference

#include <StringTo.h>

List of all members.

Public Types

typedef istringstream::fmtflags fmtflags
typedef istringstream::iostate iostate

Public Member Functions

 StringTo (const StringTo &)
 StringTo ()
template<typename T >
cast (const string &str) SSRC_DECL_THROW(std
 Converts a string to an object.
template<typename T >
cast (const char *str) SSRC_DECL_THROW(std
fmtflags flags () const
fmtflags flags (const fmtflags flags)
fmtflags setf (const fmtflags flags)
fmtflags setf (const fmtflags flags, const fmtflags mask)
void unsetf (const fmtflags flags)
iostate rdstate () const
void clear (iostate state=istringstream::goodbit)
void setstate (iostate state)

Detailed Description

Definition at line 42 of file StringTo.h.


Member Typedef Documentation

typedef istringstream::fmtflags utility::StringTo::fmtflags

Definition at line 46 of file StringTo.h.

typedef istringstream::iostate utility::StringTo::iostate

Definition at line 47 of file StringTo.h.


Constructor & Destructor Documentation

utility::StringTo::StringTo ( const StringTo ) [inline]

Definition at line 49 of file StringTo.h.

utility::StringTo::StringTo ( ) [inline]

Definition at line 51 of file StringTo.h.


Member Function Documentation

template<typename T >
T utility::StringTo::cast ( const string &  str) [inline]

Converts a string to an object.

Definition at line 61 of file StringTo.h.

Referenced by utility::string_to().

template<typename T >
T utility::StringTo::cast ( const char *  str) [inline]

Definition at line 80 of file StringTo.h.

void utility::StringTo::clear ( iostate  state = istringstream::goodbit) [inline]

Definition at line 125 of file StringTo.h.

fmtflags utility::StringTo::flags ( ) const [inline]

Definition at line 99 of file StringTo.h.

fmtflags utility::StringTo::flags ( const fmtflags  flags) [inline]

Definition at line 103 of file StringTo.h.

iostate utility::StringTo::rdstate ( ) const [inline]

Definition at line 121 of file StringTo.h.

fmtflags utility::StringTo::setf ( const fmtflags  flags) [inline]

Definition at line 107 of file StringTo.h.

fmtflags utility::StringTo::setf ( const fmtflags  flags,
const fmtflags  mask 
) [inline]

Definition at line 111 of file StringTo.h.

void utility::StringTo::setstate ( iostate  state) [inline]

Definition at line 129 of file StringTo.h.

void utility::StringTo::unsetf ( const fmtflags  flags) [inline]

Definition at line 117 of file StringTo.h.


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

Savarese Software Research Corporation
Copyright © 2006-2011 Savarese Software Research Corporation. All rights reserved.