Mercurial > hg > orthanc-stone
comparison Samples/Sdl/TrackerSample.cpp @ 818:e42b491f1fb2
Removed typedefs to shared_ptr by making them explicit. Removed using namespace
directives to make usage more explicit, too.
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Wed, 29 May 2019 10:51:28 +0200 |
parents | 07adcffba38c |
children | 0aff28f15ea2 |
comparison
equal
deleted
inserted
replaced
817:68f888812af4 | 818:e42b491f1fb2 |
---|---|
46 - in order to do that, we need a GetNextFreeZIndex function (or something | 46 - in order to do that, we need a GetNextFreeZIndex function (or something |
47 along those lines) in the scene object | 47 along those lines) in the scene object |
48 | 48 |
49 */ | 49 */ |
50 | 50 |
51 | 51 boost::weak_ptr<OrthancStone::TrackerSampleApp> g_app; |
52 using namespace Orthanc; | |
53 using namespace OrthancStone; | |
54 | |
55 | |
56 | |
57 | |
58 boost::weak_ptr<TrackerSampleApp> g_app; | |
59 | 52 |
60 void TrackerSample_SetInfoDisplayMessage(std::string key, std::string value) | 53 void TrackerSample_SetInfoDisplayMessage(std::string key, std::string value) |
61 { | 54 { |
62 boost::shared_ptr<TrackerSampleApp> app = g_app.lock(); | 55 boost::shared_ptr<OrthancStone::TrackerSampleApp> app = g_app.lock(); |
63 if (app) | 56 if (app) |
64 { | 57 { |
65 app->SetInfoDisplayMessage(key, value); | 58 app->SetInfoDisplayMessage(key, value); |
66 } | 59 } |
67 } | 60 } |
71 * Windows. Otherwise, one gets the linking error "undefined reference | 64 * Windows. Otherwise, one gets the linking error "undefined reference |
72 * to `SDL_main'". https://wiki.libsdl.org/FAQWindows | 65 * to `SDL_main'". https://wiki.libsdl.org/FAQWindows |
73 **/ | 66 **/ |
74 int main(int argc, char* argv[]) | 67 int main(int argc, char* argv[]) |
75 { | 68 { |
69 using namespace OrthancStone; | |
70 | |
76 StoneInitialize(); | 71 StoneInitialize(); |
77 Orthanc::Logging::EnableInfoLevel(true); | 72 Orthanc::Logging::EnableInfoLevel(true); |
78 // Orthanc::Logging::EnableTraceLevel(true); | 73 // Orthanc::Logging::EnableTraceLevel(true); |
79 | 74 |
80 try | 75 try |