GDCM 3.2.1

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
20 namespace gdcm {
21
28 class GDCM_EXPORT DPath {
29 friend std::ostream &operator<<(std::ostream &_os, const DPath &_val);
30
31 public:
32 DPath();
33 ~DPath();
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
49 inline 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
gdcm::DPath::~DPath
~DPath()
gdcm::DPath::operator<<
friend std::ostream & operator<<(std::ostream &_os, const DPath &_val)
Definition gdcmDPath.h:49
gdcm::DPath::Print
void Print(std::ostream &) const
gdcm::DPath::operator<
bool operator<(const DPath &rhs) const
gdcm::DPath::DPath
DPath()
gdcm::DPath::ConstructFromString
bool ConstructFromString(const char *path)
gdcm::DPath::IsValid
static bool IsValid(const char *path)
Return if path is valid or not.
gdcm::DPath::Match
bool Match(DPath const &other) const
Return whether or not 'other' match the template DPath.
gdcmTag.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21
gdcm::operator<<
std::ostream & operator<<(std::ostream &os, const Directory &d)
Definition gdcmDirectory.h:88