Mercurial > hg > orthanc
comparison Plugins/Samples/Common/OrthancPluginCppWrapper.h @ 2823:807169f85ba9
OrthancPluginGetPeerUserProperty()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 18 Sep 2018 15:38:18 +0200 |
parents | 473bf302d629 |
children | dd3914a44b87 |
comparison
equal
deleted
inserted
replaced
2822:a0b729ac0549 | 2823:807169f85ba9 |
---|---|
551 OrthancPluginContext *context_; | 551 OrthancPluginContext *context_; |
552 OrthancPluginPeers *peers_; | 552 OrthancPluginPeers *peers_; |
553 Index index_; | 553 Index index_; |
554 uint32_t timeout_; | 554 uint32_t timeout_; |
555 | 555 |
556 size_t GetPeerIndex(const std::string& name) const; | |
557 | |
556 public: | 558 public: |
557 OrthancPeers(OrthancPluginContext* context); | 559 OrthancPeers(OrthancPluginContext* context); |
558 | 560 |
559 ~OrthancPeers(); | 561 ~OrthancPeers(); |
560 | 562 |
579 | 581 |
580 size_t GetPeersCount() const | 582 size_t GetPeersCount() const |
581 { | 583 { |
582 return index_.size(); | 584 return index_.size(); |
583 } | 585 } |
586 | |
587 bool LookupUserProperty(std::string& value, | |
588 size_t index, | |
589 const std::string& key) const; | |
590 | |
591 bool LookupUserProperty(std::string& value, | |
592 const std::string& peer, | |
593 const std::string& key) const; | |
584 | 594 |
585 bool DoGet(MemoryBuffer& target, | 595 bool DoGet(MemoryBuffer& target, |
586 size_t index, | 596 size_t index, |
587 const std::string& uri) const; | 597 const std::string& uri) const; |
588 | 598 |