diff OrthancServer/DicomInstanceToStore.h @ 1285:5730f374e4e6

Access to called AET and remote AET from Lua scripts
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 03 Feb 2015 15:00:42 +0100
parents 649d47854314
children 6e7e5ed91c2d
line wrap: on
line diff
--- a/OrthancServer/DicomInstanceToStore.h	Tue Feb 03 14:07:07 2015 +0100
+++ b/OrthancServer/DicomInstanceToStore.h	Tue Feb 03 15:00:42 2015 +0100
@@ -144,6 +144,7 @@
     SmartContainer<Json::Value>  json_;
 
     std::string remoteAet_;
+    std::string calledAet_;
     ServerIndex::MetadataMap metadata_;
 
     void ComputeMissingInformation();
@@ -169,7 +170,7 @@
       json_.SetConstReference(json);
     }
 
-    const std::string GetRemoteAet() const
+    const std::string& GetRemoteAet() const
     {
       return remoteAet_;
     }
@@ -179,6 +180,16 @@
       remoteAet_ = aet;
     }
 
+    const std::string& GetCalledAet() const
+    {
+      return calledAet_;
+    }
+
+    void SetCalledAet(const std::string& aet)
+    {
+      calledAet_ = aet;
+    }
+
     void AddMetadata(ResourceType level,
                      MetadataType metadata,
                      const std::string& value);