iRoCS Toolbox  1.1.0
MinimalStData.hh
Go to the documentation of this file.
1 /**************************************************************************
2  *
3  * Copyright (C) 2004-2015 Olaf Ronneberger, Florian Pigorsch, Jörg Mechnich,
4  * Thorsten Falk
5  *
6  * Image Analysis Lab, University of Freiburg, Germany
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software Foundation,
20  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  *
22  **************************************************************************/
23 
24 /**************************************************************************
25 ** Title:
26 ** $RCSfile$
27 ** $Revision: 4820 $$Name$
28 ** $Date: 2011-11-08 10:57:01 +0100 (Tue, 08 Nov 2011) $
29 ** Copyright: GPL $Author: tschmidt $
30 ** Description:
31 **
32 ** dummy class that contains the minimal interface for StData-classes
33 **
34 **-------------------------------------------------------------------------
35 **
36 ** $Log$
37 ** Revision 1.1 2004/08/26 08:36:59 ronneber
38 ** initital import
39 **
40 **
41 **
42 **************************************************************************/
43 
44 #ifndef MINIMALSTDATA_HH
45 #define MINIMALSTDATA_HH
46 
47 #ifdef HAVE_CONFIG_H
48 #include <config.hh>
49 #endif
50 
51 #include <string>
52 
53 #include "RequireHelpers.hh"
54 #include "MinimalFeatureVector.hh"
55 #include "RequireForwardIter.hh"
56 
57 namespace svt_check
58 {
59 
61  {
62  public:
63 
64  void setExceptionFlag( bool) {}
65 
66  bool exceptionFlag() const { return true;}
67 
68  bool valueExists(const std::string&) const { return true;}
69 
70 
71  void setValue( const std::string&, const bool& ) {}
72  void setValue( const std::string&, const int& ) {}
73  void setValue( const std::string&, const unsigned int& ) {}
74  void setValue( const std::string&, const float& ) {}
75  void setValue( const std::string&, const double& ) {}
76  void setValue( const std::string&, const std::string& ) {}
77 
78  template<typename ForwardIter>
79  void setArray( const std::string&, const ForwardIter& arrBegin,
80  size_t)
81  {
82  if(false)
83  {
85  checkSetArray_ValueTypes( *arrBegin);
86  }
87  }
88 
89  private:
90  void checkSetArray_ValueTypes( double) {}
91  void checkSetArray_ValueTypes( unsigned int) {}
92 
93  public:
94  template<typename ForwardIter>
95  void setFVArray( const std::string& key, const ForwardIter& arrBegin,
96  size_t size)
97  {
98  if( false)
99  {
101  checkSetFVArray_ValueTypes( *arrBegin);
102  }
103 
104  }
105 
106  private:
107  void checkSetFVArray_ValueTypes( MinimalFeatureVector*) {}
108 
109  public:
110  void getValue( const std::string&, const bool& ) {}
111  void getValue( const std::string&, const int& ) {}
112  void getValue( const std::string&, const unsigned int& ) {}
113  void getValue( const std::string&, const float& ) {}
114  void getValue( const std::string&, const double& ) {}
115  void getValue( const std::string&, const std::string& ) {}
116 
117  unsigned int getArraySize( std::string)
118  { return 0;}
119 
120  unsigned int getFVArraySize( std::string)
121  { return 0;}
122 
123  template<typename ForwardIter>
124  void getArray( const std::string&, const ForwardIter& arrBegin, int)
125  {
126  if(false)
127  {
129  checkSetArray_ValueTypes( *arrBegin);
130  }
131  }
132 
133  template<typename ForwardIter>
134  void getFVArray( const std::string& key, const ForwardIter& arrBegin,
135  int containerSize=-1)
136  {
137  if(false)
138  {
140  checkSetFVArray_ValueTypes( *arrBegin);
141  }
142 
143  }
144 
145  };
146 }
147 
148 
149 
150 #endif
void getFVArray(const std::string &key, const ForwardIter &arrBegin, int containerSize=-1)
void setValue(const std::string &, const int &)
#define CHECK_MEMBER_TEMPLATE(c)
void setFVArray(const std::string &key, const ForwardIter &arrBegin, size_t size)
void setValue(const std::string &, const float &)
void setValue(const std::string &, const double &)
void getValue(const std::string &, const bool &)
unsigned int getArraySize(std::string)
void getValue(const std::string &, const int &)
void getValue(const std::string &, const float &)
void getValue(const std::string &, const double &)
void getValue(const std::string &, const std::string &)
unsigned int getFVArraySize(std::string)
void getArray(const std::string &, const ForwardIter &arrBegin, int)
void getValue(const std::string &, const unsigned int &)
void setValue(const std::string &, const unsigned int &)
void setValue(const std::string &, const bool &)
void setValue(const std::string &, const std::string &)
bool valueExists(const std::string &) const
void setArray(const std::string &, const ForwardIter &arrBegin, size_t)