Mercurial > hg > orthanc-stone
diff Resources/CommandTool/flatc-tests/basic/main.cpp @ 445:ee41b6a017d7 bgo-commands-codegen
dumb change
author | bgo-osimis |
---|---|
date | Wed, 16 Jan 2019 16:24:45 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Resources/CommandTool/flatc-tests/basic/main.cpp Wed Jan 16 16:24:45 2019 +0100 @@ -0,0 +1,38 @@ +#include <iostream> +#include "basic_generated.h" + +using namespace Orthanc::Stone::Samples::SimpleViewer; + +namespace OrthancStone +{ + class IPocMessage + { + public: + virtual std::string GetType() = 0; + }; + + +} + + + +int main() +{ + Request; + + Request::messageType = SelectTool; + + SelectToolT tool2; + tool2.tool = Tool_CircleMeasure; + + SendToApplication(tool2); + + + tool2.tool = Tool_CircleMeasure; + + CircleToolT circleTool; + circleTool.centerX = 3; + circleTool.centerY = 4; + + std::cout << "Hello from flatc generator sample!" << std::endl; +}