Mercurial > hg > orthanc
comparison Plugins/Samples/Basic/Plugin.c @ 1861:a7bea843a7bc
"OrthancPluginLookupDictionary()" to get information about some DICOM tag
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 02 Dec 2015 13:00:18 +0100 |
parents | 2abfdca9b915 |
children | b1291df2f780 |
comparison
equal
deleted
inserted
replaced
1860:c7d70f659190 | 1861:a7bea843a7bc |
---|---|
325 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* c) | 325 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* c) |
326 { | 326 { |
327 OrthancPluginMemoryBuffer tmp; | 327 OrthancPluginMemoryBuffer tmp; |
328 char info[1024], *s; | 328 char info[1024], *s; |
329 int counter, i; | 329 int counter, i; |
330 OrthancPluginDictionaryEntry entry; | |
330 | 331 |
331 context = c; | 332 context = c; |
332 OrthancPluginLogWarning(context, "Sample plugin is initializing"); | 333 OrthancPluginLogWarning(context, "Sample plugin is initializing"); |
333 | 334 |
334 /* Check the version of the Orthanc core */ | 335 /* Check the version of the Orthanc core */ |
405 customError = OrthancPluginRegisterErrorCode(context, 4, 402, "Hello world"); | 406 customError = OrthancPluginRegisterErrorCode(context, 4, 402, "Hello world"); |
406 | 407 |
407 OrthancPluginRegisterDictionaryTag(context, 0x0014, 0x1020, OrthancPluginValueRepresentation_DA, | 408 OrthancPluginRegisterDictionaryTag(context, 0x0014, 0x1020, OrthancPluginValueRepresentation_DA, |
408 "ValidationExpiryDate", 1, 1); | 409 "ValidationExpiryDate", 1, 1); |
409 | 410 |
411 OrthancPluginLookupDictionary(context, &entry, "ValidationExpiryDate"); | |
412 OrthancPluginLookupDictionary(context, &entry, "0010-0010"); | |
413 | |
410 return 0; | 414 return 0; |
411 } | 415 } |
412 | 416 |
413 | 417 |
414 ORTHANC_PLUGINS_API void OrthancPluginFinalize() | 418 ORTHANC_PLUGINS_API void OrthancPluginFinalize() |