iof::validity Struct Reference

#include <validity.hpp>

Collaboration diagram for iof::validity:

Collaboration graph
[legend]
List of all members.

Detailed Description

Represents the validity state of a stream.

Currently used only for input problems: an instance of this class can be populated by iof::fmtr to get details on input errors, as in

    iof::validity ok;
    while  (cin >> iof::fmtr("%s:%s") >> hr >> min >> ok) 
        // do something
        // ...
    if (!ok) // access problemPos and fmt data members
        // ...


Public Member Functions

void set (const char *problemPos_, const std::string &fmtStr)
 operator bool () const
 return true if ok, false if not
bool operator! () const

Public Attributes

int problemPos
 index of where problem was, in format string
std::string fmt
 the format string


The documentation for this struct was generated from the following file:
Generated on Fri Nov 24 16:16:01 2006 for IOF Library by doxygen 1.5.1-p1
Thanks to SourceForge.net Logo for hosting