comparison Core/Compression/HierarchicalZipWriter.h @ 1121:82567bac5e25

Creation of ZIP archives for media storage, with DICOMDIR
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 05 Sep 2014 14:28:43 +0200
parents 2d0a347e8cfc
children 46bca019587e
comparison
equal deleted inserted replaced
1120:009dce4ea2f6 1121:82567bac5e25
61 61
62 typedef std::list<Directory*> Stack; 62 typedef std::list<Directory*> Stack;
63 63
64 Stack stack_; 64 Stack stack_;
65 65
66 std::string GetCurrentDirectoryPath() const;
67
68 std::string EnsureUniqueFilename(const char* filename); 66 std::string EnsureUniqueFilename(const char* filename);
69 67
70 public: 68 public:
71 Index(); 69 Index();
72 70
80 std::string OpenFile(const char* name); 78 std::string OpenFile(const char* name);
81 79
82 void OpenDirectory(const char* name); 80 void OpenDirectory(const char* name);
83 81
84 void CloseDirectory(); 82 void CloseDirectory();
83
84 std::string GetCurrentDirectoryPath() const;
85 85
86 static std::string KeepAlphanumeric(const std::string& source); 86 static std::string KeepAlphanumeric(const std::string& source);
87 }; 87 };
88 88
89 Index indexer_; 89 Index indexer_;
118 118
119 void OpenDirectory(const char* name); 119 void OpenDirectory(const char* name);
120 120
121 void CloseDirectory(); 121 void CloseDirectory();
122 122
123 std::string GetCurrentDirectoryPath() const
124 {
125 return indexer_.GetCurrentDirectoryPath();
126 }
127
123 void Write(const char* data, size_t length) 128 void Write(const char* data, size_t length)
124 { 129 {
125 writer_.Write(data, length); 130 writer_.Write(data, length);
126 } 131 }
127 132