Scarab  v2.1.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 
36  {
37  }
38 
39  bool param::has_subset( const param& /*a_subset*/ ) const
40  {
41  // 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)
42  return true;
43  }
44 
45  SCARAB_API std::ostream& operator<<(std::ostream& out, const param& a_value)
46  {
47  return out << a_value.to_string();
48  }
49 
50 } /* namespace scarab */
virtual bool has_subset(const param &a_subset) const
Definition: param_base.cc:39
#define SCARAB_API
Definition: scarab_api.hh:24
virtual std::string to_string() const
virtual ~param()
Definition: param_base.cc:35
static unsigned s_indent_level
Definition: param_base.hh:76
SCARAB_API std::ostream & operator<<(std::ostream &out, const param_array &a_value)
Definition: param_array.cc:110