KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
l_writeable.h
Go to the documentation of this file.
1 /* $Id: l_writeable.h 18278 2014-11-25 01:42:10Z ksimek $ */
2 
3 /* =========================================================================== *
4 |
5 | Copyright (c) 1994-2008 by Kobus Barnard (author).
6 |
7 | Personal and educational use of this code is granted, provided that this
8 | header is kept intact, and that the authorship is not misrepresented, that
9 | its use is acknowledged in publications, and relevant papers are cited.
10 |
11 | For other use contact the author (kobus AT cs DOT arizona DOT edu).
12 |
13 | Please note that the code in this file has not necessarily been adequately
14 | tested. Naturally, there is no guarantee of performance, support, or fitness
15 | for any particular task. Nonetheless, I am interested in hearing about
16 | problems that you encounter.
17 |
18 | Authors:
19 | Kyle Simek, Joseph Schlecht, Luca Del Pero
20 |
21 * =========================================================================== */
22 
23 #ifndef KJB_WRITEABLE_H
24 #define KJB_WRITEABLE_H
25 
26 
27 #include <l_cpp/l_exception.h>
28 #include <iosfwd>
29 
30 
31 
32 namespace kjb
33 {
34 
35 
41 class Writeable
42 {
43  public:
44 
46  virtual ~Writeable() { }
47 
48 
50  virtual void write(std::ostream& out) const = 0;
51 
52 
54  virtual void write(const char* fname) const;
55 };
56 
57 
58 }
59 
60 
61 #endif
Abstract class to write this object to an output stream.
Definition: l_writeable.h:41
virtual void write(std::ostream &out) const =0
Writes this Writeable to an output stream.
virtual ~Writeable()
Deletes this Writeable.
Definition: l_writeable.h:46
Support for error handling exception classes in libKJB.