Scarab  v2.0.0
Project 8 C++ Utility Library
param_base.cc
Go to the documentation of this file.
1 /*
2  * param_base.cc
3  *
4  * Created on: Jan 14, 2014
5  * Author: nsoblath
6  */
7 
8 #define SCARAB_API_EXPORTS
9 
10 #include <sstream>
11 using std::string;
12 using std::stringstream;
13 
14 #include "param_base.hh"
15 
16 #include "param_base_impl.hh"
17 
18 namespace scarab
19 {
20 
21  SCARAB_API unsigned param::s_indent_level = 0;
22 
24  {
25  }
26 
27  param::param( const param& )
28  {
29  }
30 
32  {
33  }
34 
35  bool param::has_subset( const param& /*a_subset*/ ) const
36  {
37  // this version of has_subset should only ever be called if a_subset is a null param (i.e. not one of the derived classes)
38  return true;
39  }
40 
41  SCARAB_API std::ostream& operator<<(std::ostream& out, const param& a_value)
42  {
43  return out << a_value.to_string();
44  }
45 
46 } /* namespace scarab */
virtual bool has_subset(const param &a_subset) const
Definition: param_base.cc:35
#define SCARAB_API
Definition: scarab_api.hh:24
virtual std::string to_string() const
virtual ~param()
Definition: param_base.cc:31
static unsigned s_indent_level
Definition: param_base.hh:67
SCARAB_API std::ostream & operator<<(std::ostream &out, const param_array &a_value)
Definition: param_array.cc:97