GDCM: gdcmApplicationEntity.h Source File

GDCM 3.2.5

gdcmApplicationEntity.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 GDCMAPPLICATIONENTITY_H
15#define GDCMAPPLICATIONENTITY_H
16
17#include "gdcmTypes.h"
18#include <vector>
19#include <stdlib.h> // abort
20
21namespace gdcm
22{
23
35 class GDCM_EXPORT ApplicationEntity
36{
37public:
38 static const unsigned int MaxNumberOfComponents = 1;
39 static const unsigned int MaxLength = 16;
40 std::string Internal;
41 static const char Separator = ' ';
42 static const char Padding = ' ';
43 //static const char Excluded[5] = { '\\' /* 5CH */, '\n' /* LF */, '\f', /* FF */, '\r' /* CR */, 0x1b /* ESC */};
44
45 bool IsValid() const {
46 return true;
47 }
48 void Squeeze() {
49 // trim leading and trailing white spaces
50 }
51 void SetBlob(const std::vector<char>& v) {
52 (void)v;
53 gdcm_assert(0); //TODO
54 }
55 void Print(std::ostream &os) const {
56 (void)os;
57 gdcm_assert(0); //TODO
58 }
59};
60
61} // end namespace gdcm
62
63#endif //GDCMAPPLICATIONENTITY_H
gdcm::ApplicationEntity
ApplicationEntity.
Definition gdcmApplicationEntity.h:36
gdcm::ApplicationEntity::Squeeze
void Squeeze()
Definition gdcmApplicationEntity.h:48
gdcm::ApplicationEntity::MaxNumberOfComponents
static const unsigned int MaxNumberOfComponents
Definition gdcmApplicationEntity.h:38
gdcm::ApplicationEntity::Separator
static const char Separator
Definition gdcmApplicationEntity.h:41
gdcm::ApplicationEntity::SetBlob
void SetBlob(const std::vector< char > &v)
Definition gdcmApplicationEntity.h:51
gdcm::ApplicationEntity::Print
void Print(std::ostream &os) const
Definition gdcmApplicationEntity.h:55
gdcm::ApplicationEntity::Internal
std::string Internal
Definition gdcmApplicationEntity.h:40
gdcm::ApplicationEntity::Padding
static const char Padding
Definition gdcmApplicationEntity.h:42
gdcm::ApplicationEntity::IsValid
bool IsValid() const
Definition gdcmApplicationEntity.h:45
gdcm::ApplicationEntity::MaxLength
static const unsigned int MaxLength
Definition gdcmApplicationEntity.h:39
gdcm_assert
#define gdcm_assert(cond)
Definition gdcmException.h:104
gdcmTypes.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21