Rosetta
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Show.hh
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet:
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available under license.
6 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9 
10 /// @file utility/Show.hh
11 ///
12 /// @brief uniformed printing functionality for data types.
13 /// @author Sergey Lyskov (Sergey.Lyskov@jhu.edu)
14 
15 #ifndef INCLUDED_utility_Show_hh
16 #define INCLUDED_utility_Show_hh
17 
18 // C++ headers
19 #include <istream>
20 #include <vector>
21 
22 namespace utility {
23 
24 
25 // Base class for any showable object. To add ability to print to your object - just inherit
26 // this class, and overload 'show' method.
27 //
28 class Show {
29 public:
30  virtual ~Show() {};
31 
32  virtual void show(std::ostream &) const {};
33 };
34 
35 
36 } // namespace utility
37 
38 
39 #endif // INCLUDED_utility_Show_HH
virtual ~Show()
Definition: Show.hh:30
virtual void show(std::ostream &) const
Definition: Show.hh:32