Mercurial > hg > orthanc
comparison OrthancServer/ServerContext.cpp @ 1741:06addfcd1d4c
OrthancStarted and OrthancStopped events in plugins
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 23 Oct 2015 16:49:17 +0200 |
parents | 4aaaecae5803 |
children | 98abb8d7f905 |
comparison
equal
deleted
inserted
replaced
1740:5e99a70b0635 | 1741:06addfcd1d4c |
---|---|
518 { | 518 { |
519 throw OrthancException(ErrorCode_InternalError); | 519 throw OrthancException(ErrorCode_InternalError); |
520 } | 520 } |
521 } | 521 } |
522 | 522 |
523 OrthancPlugins& ServerContext::GetPlugins() | |
524 { | |
525 if (HasPlugins()) | |
526 { | |
527 return *plugins_; | |
528 } | |
529 else | |
530 { | |
531 throw OrthancException(ErrorCode_InternalError); | |
532 } | |
533 } | |
534 | |
523 #endif | 535 #endif |
524 | 536 |
525 | 537 |
526 bool ServerContext::HasPlugins() const | 538 bool ServerContext::HasPlugins() const |
527 { | 539 { |