Scopira 20080306

scopira::tool::archiveiflow Class Reference

#include <archiveflow.h>

Inheritance diagram for scopira::tool::archiveiflow:
scopira::tool::isoiflow scopira::tool::polyiflow scopira::tool::iobjflow_i scopira::tool::itflow_i scopira::tool::iflow_i scopira::tool::flow_i scopira::tool::object

List of all members.

Public Member Functions

 archiveiflow (void)
 ctor
virtual bool failed (void) const
 failed state?
std::string open (const std::string &filename, const std::string &tagprefix)

Detailed Description

Opens an archive for reading.

An archive contains a header, after that you simply read the various types using this objects' flow interfaces.

Author:
Aleksander Demko

Member Function Documentation

std::string scopira::tool::archiveiflow::open ( const std::string &  filename,
const std::string &  tagprefix 
)

Attempts to open a previously created archive.

The that file is not an archive, or the tag within the archive does not begin with tagprefix, the stream goes into a failed state and empty string is returned.

On success, the actual tag is returned. On failure, "" is returned (and failed() is set).

Author:
Aleksander Demko

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