comparison Core/Uuid.cpp @ 402:d2c69150a979

bulk storescu
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 Apr 2013 11:50:51 +0200
parents bdd72233b105
children 08eca5d86aad
comparison
equal deleted inserted replaced
401:5962898fb7c8 402:d2c69150a979
94 94
95 return true; 95 return true;
96 } 96 }
97 97
98 98
99 bool StartsWithUuid(const std::string& str)
100 {
101 if (str.size() < 36)
102 {
103 return false;
104 }
105
106 if (str.size() == 36)
107 {
108 return IsUuid(str);
109 }
110
111 assert(str.size() > 36);
112 if (!isspace(str[36]))
113 {
114 return false;
115 }
116
117 return IsUuid(str.substr(0, 36));
118 }
119
120
99 static std::string CreateTemporaryPath(const char* extension) 121 static std::string CreateTemporaryPath(const char* extension)
100 { 122 {
101 #if BOOST_HAS_FILESYSTEM_V3 == 1 123 #if BOOST_HAS_FILESYSTEM_V3 == 1
102 boost::filesystem::path tmpDir = boost::filesystem::temp_directory_path(); 124 boost::filesystem::path tmpDir = boost::filesystem::temp_directory_path();
103 #elif defined(__linux__) 125 #elif defined(__linux__)