Mercurial > hg > orthanc
diff OrthancServer/ServerEnumerations.h @ 435:28ba73274919
registration of user-defined metadata
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 15 May 2013 15:57:05 +0200 |
parents | ccf3a0a43dac |
children | beca6747945e |
line wrap: on
line diff
--- a/OrthancServer/ServerEnumerations.h Wed May 15 14:54:58 2013 +0200 +++ b/OrthancServer/ServerEnumerations.h Wed May 15 15:57:05 2013 +0200 @@ -81,7 +81,11 @@ MetadataType_Series_ExpectedNumberOfInstances = 4, MetadataType_ModifiedFrom = 5, MetadataType_AnonymizedFrom = 6, - MetadataType_LastUpdate = 7 + MetadataType_LastUpdate = 7, + + // Make sure that the value "65535" can be stored into this enumeration + MetadataType_StartUser = 1024, + MetadataType_EndUser = 65535 }; enum ChangeType @@ -99,11 +103,20 @@ ChangeType_ModifiedPatient = 11 }; + void InitializeServerEnumerations(); + + void RegisterUserMetadata(int metadata, + const std::string name); + std::string GetBasePath(ResourceType type, const std::string& publicId); + MetadataType StringToMetadata(const std::string& str); + const char* EnumerationToString(ResourceType type); + const char* EnumerationToString(MetadataType type); + const char* EnumerationToString(SeriesStatus status); const char* EnumerationToString(StoreStatus status);