annotate Applications/Samples/CtPetDoseStructFusion/AppStatus.h @ 540:7428c5dfa5df ct-pet-dose-struct

Initial commit non working app
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 19 Mar 2019 16:29:07 +0100
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
540
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
1 #pragma once
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
2
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
3 #include <string>
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
4
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
5
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
6 namespace CtPetDoseStructFusion
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
7 {
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
8 struct AppStatus
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
9 {
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
10 std::string patientId;
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
11 std::string studyDescription;
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
12 std::string currentSeriesIdInMainViewport;
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
13 // note: if you add members here, update the serialization code below and deserialization in ct-dose-struct-fusion.ts -> onAppStatusUpdated()
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
14
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
15
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
16 AppStatus()
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
17 {
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
18 }
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
19
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
20 void ToJson(Json::Value &output) const
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
21 {
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
22 output["patientId"] = patientId;
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
23 output["studyDescription"] = studyDescription;
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
24 output["currentSeriesIdInMainViewport"] = currentSeriesIdInMainViewport;
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
25 }
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
26 };
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
27 }