MeVisLab Toolbox Reference
mlMultiFileVolumeListFind.h
Go to the documentation of this file.
1 // Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2 // **InsertLicense** code
3 //----------------------------------------------------------------------------------
5 
10 //----------------------------------------------------------------------------------
11 #pragma once
12 
13 // Local includes
15 
16 // ML includes
17 #include <mlTypeDefs.h>
18 
19 #include <ThirdPartyWarningsDisable.h>
20 #include <map>
21 #include <string>
22 #include <vector>
23 #include <ThirdPartyWarningsRestore.h>
24 
25 ML_START_NAMESPACE
26 
27 // Forwards to internally used types.
28 class MultiFileVolume;
29 class MultiFileVolumeList;
30 
31 //----------------------------------------------------------------------------------
34 //----------------------------------------------------------------------------------
35 typedef std::multimap<unsigned int, std::string> TSearchTerm;
36 
37 //----------------------------------------------------------------------------------
39 //----------------------------------------------------------------------------------
41  public:
42 
46  BOOLEAN_OP_AND = 0,
48  NUM_BOOLEAN_OPS
49  };
50 
51  // Default constructor.
53 
56  std::string sopClassUID,
57  std::string sopInstanceUID) const;
58 
68  TSearchTerm searchTerm,
69  std::vector<MLuint32> &outVolumeIds,
70  BooleanOperation booleanOperation,
71  bool searchAnyValue) const;
72 };
73 
74 ML_END_NAMESPACE
Project global and OS specific declarations.
#define MLMULTI_FILE_VOLUME_EXPORT
Only for diagnostic purposes.
Class implementing some search functionality on MultiFileVolumeLists.
BooleanOperation
An enumeration to define the boolean op to be performed on the results of all search items.
bool findVolumesByCriteria(const MultiFileVolumeList &mfvList, TSearchTerm searchTerm, std::vector< MLuint32 > &outVolumeIds, BooleanOperation booleanOperation, bool searchAnyValue) const
Find volumes in mfvList using given searchTerm (containing e.g.
MultiFileVolume * findVolumeByInstanceUID(const MultiFileVolumeList &mfvList, std::string sopClassUID, std::string sopInstanceUID) const
Find a volume in mfvList using given SOPClassUID and SOPInstanceUID.
Class managing a list of MultiFileVolume instances for the DirectDicomImport module; taking ownership...
Management class used by DirectDicomImport to create, represent and describe volumes composed of mult...
std::multimap< unsigned int, std::string > TSearchTerm
Typedef to define filter criteria to filter the list of volume references e.g.