GDCM 3.0.24
gdcmDPath.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: GDCM (Grassroots DICOM). A DICOM library
4
5 Copyright (c) 2006-2011 Mathieu Malaterre
6 All rights reserved.
7 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notice for more information.
12
13=========================================================================*/
14#ifndef GDCMDPATH_H
15#define GDCMDPATH_H
16
17#include "gdcmTag.h"
18#include <string>
19
20namespace gdcm {
21
29 friend std::ostream &operator<<(std::ostream &_os, const DPath &_val);
30
31 public:
34 void Print(std::ostream &) const;
35 bool operator<(const DPath &rhs) const;
36
37 bool ConstructFromString(const char *path);
38
40 bool Match(DPath const &other) const;
41
43 static bool IsValid(const char *path);
44
45 private:
46 std::string Path;
47};
48
49inline std::ostream &operator<<(std::ostream &os, const DPath &val) {
50 os << val.Path;
51 return os;
52}
53
54} // end namespace gdcm
55
56#endif // GDCMDPATH_H
class to handle a DICOM path While supp 118 did introduced a notion of XPath for XML Native model thi...
Definition gdcmDPath.h:28
void Print(std::ostream &) const
bool operator<(const DPath &rhs) const
bool ConstructFromString(const char *path)
static bool IsValid(const char *path)
Return if path is valid or not.
bool Match(DPath const &other) const
Return whether or not 'other' match the template DPath.
#define GDCM_EXPORT
Definition gdcmWin32.h:34
Definition gdcmASN1.h:21
std::ostream & operator<<(std::ostream &os, const Directory &d)
Definition gdcmDirectory.h:88