NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkDataNodeStringPropertyFilter.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef niftkDataNodeStringPropertyFilter_h
16 #define niftkDataNodeStringPropertyFilter_h
17 
18 #include "niftkCoreExports.h"
19 
20 #include "niftkDataNodeFilter.h"
21 
22 namespace niftk
23 {
24 
33 class NIFTKCORE_EXPORT DataNodeStringPropertyFilter : public DataNodeFilter
34 {
35 
36 public:
37 
39  itkNewMacro(DataNodeStringPropertyFilter)
40 
41 
42  itkSetMacro(PropertyName, std::string);
43 
45  itkGetMacro(PropertyName, std::string);
46 
51  virtual bool Pass(const mitk::DataNode* node) override;
52 
54  virtual void ClearList();
55 
59  virtual void AddToList(const std::string& propertyValue);
60 
64  virtual void AddToList(const std::vector< std::string >& listOfStrings);
65 
66 protected:
67 
70 
71  DataNodeStringPropertyFilter(const DataNodeStringPropertyFilter&); // Purposefully not implemented.
72  DataNodeStringPropertyFilter& operator=(const DataNodeStringPropertyFilter&); // Purposefully not implemented.
73 
74 private:
75 
76  std::string m_PropertyName;
77  std::vector< std::string > m_Strings;
78 
79 };
80 
81 }
82 
83 #endif
A filter that takes a named property, for example "name", and a list of strings to check against...
Definition: niftkDataNodeStringPropertyFilter.h:33
A class that tests a list of nodes, and returns true for "pass" and false otherwise.
Definition: niftkDataNodeFilter.h:30
Definition: niftkExceptionObject.h:21
GLsizei const GLcharARB ** string
Definition: glew.h:5194