Logo Search packages:      
Sourcecode: c++-annotations version File versions  Download package



#include <iosfwd>
#include <istream>
#include <sstream>
#include <fstream>

    fis >> field(3) >> x    extracts x over max 3 positions.
        First, 3 chars are extracted from fis itself. They are put
        in a separate buffer which is then extracted. What if the extraction
        is not complete? Then a rest remains in the buffer, most likely
        resulting in a failing read, thereafter. Manipulators are provided
        to prevent this: field(0) returns to the non-fixed reading: the
        last field, even if not completely read, is then further ignored.
        field() reads the next field, same width as the previous field. If
        no field has been set before, field() has no effect.

namespace FBB

    class field;

    class fistream: public std::istream
        std::auto_ptr<std::filebuf> d_filebuf;
        std::streambuf *d_streambuf;
        std::istringstream d_iss;
        size_t d_width;
            fistream(std::istream &stream);
            fistream(char const *name,
                std::ios::openmode mode = std::ios::in);
            std::istream &setField(field const &params);
            void setBuffer();
    class field
        friend class fistream;
        size_t d_width;
        bool     d_newWidth;

            field(size_t width);

    inline field::field(size_t width)

    inline field::field()
}   // FBB

namespace std
    istream &operator>>(istream &str, FBB::field const &params);


Generated by  Doxygen 1.6.0   Back to index