Mercurial > hg > orthanc
comparison Core/FileStorage/StorageAccessor.cpp @ 233:c11273198cef
rename
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 30 Nov 2012 14:30:05 +0100 |
parents | 5368bbe813cf |
children | bdd72233b105 |
comparison
equal
deleted
inserted
replaced
232:5368bbe813cf | 233:c11273198cef |
---|---|
33 #include "StorageAccessor.h" | 33 #include "StorageAccessor.h" |
34 | 34 |
35 namespace Orthanc | 35 namespace Orthanc |
36 { | 36 { |
37 FileInfo StorageAccessor::Write(const std::vector<uint8_t>& content, | 37 FileInfo StorageAccessor::Write(const std::vector<uint8_t>& content, |
38 FileType type) | 38 FileContentType type) |
39 { | 39 { |
40 if (content.size() == 0) | 40 if (content.size() == 0) |
41 { | 41 { |
42 return WriteInternal(NULL, 0, type); | 42 return WriteInternal(NULL, 0, type); |
43 } | 43 } |
46 return WriteInternal(&content[0], content.size(), type); | 46 return WriteInternal(&content[0], content.size(), type); |
47 } | 47 } |
48 } | 48 } |
49 | 49 |
50 FileInfo StorageAccessor::Write(const std::string& content, | 50 FileInfo StorageAccessor::Write(const std::string& content, |
51 FileType type) | 51 FileContentType type) |
52 { | 52 { |
53 if (content.size() == 0) | 53 if (content.size() == 0) |
54 { | 54 { |
55 return WriteInternal(NULL, 0, type); | 55 return WriteInternal(NULL, 0, type); |
56 } | 56 } |