Scopira  20080306
archiveflow.h
1 
2 /*
3  * Copyright (c) 2004 National Research Council
4  *
5  * All rights reserved.
6  *
7  * This material is confidential and proprietary information of
8  * National Research Council Canada ("Confidential Information").
9  * This Confidential Information may only be used and reproduced
10  * in accordance with the terms of the license agreement.
11  *
12  */
13 
14 #ifndef __INCLUDED_SCOPIRA_TOOL_ARCHIVEFLOW_H__
15 #define __INCLUDED_SCOPIRA_TOOL_ARCHIVEFLOW_H__
16 
17 #include <scopira/tool/polyflow.h>
18 #include <scopira/tool/export.h>
19 
20 namespace scopira
21 {
22  namespace tool
23  {
24  class archiveiflow;
25  class archiveoflow;
26 
27  //make quick one liners in the future?
28  //bool write_object_archive(const std::string &filename, scopira::tool::object *o);
29  // templated?
30  //bool read_object_archive(const std::string &filename, scopira::tool::object *o);
31  }
32 }
33 
43 {
44  public:
46  SCOPIRA_EXPORT archiveiflow(void);
47 
49  SCOPIRA_EXPORT virtual bool failed(void) const;
50 
63  SCOPIRA_EXPORT std::string open(const std::string &filename, const std::string &tagprefix);
64 };
65 
74 {
75  public:
77  SCOPIRA_EXPORT archiveoflow(void);
78 
80  SCOPIRA_EXPORT virtual bool failed(void) const;
81 
91  SCOPIRA_EXPORT void open(const std::string &filename, const std::string &tagkey);
92 };
93 
94 #endif
95 
Definition: polyflow.h:172
Definition: archiveflow.h:20
Definition: archiveflow.h:73
std::string open(const std::string &filename, const std::string &tagprefix)
Definition: archiveflow.h:42
Definition: polyflow.h:202
virtual bool failed(void) const
failed state?