view Applications/Samples/CtPetDoseStructFusion/AppStatus.h @ 546:fb7f4a5bdfc0 ct-pet-dose-struct

Merged in dev (pull request #1) Merge from dev
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 02 Apr 2019 09:38:50 +0000
parents 7428c5dfa5df
children
line wrap: on
line source

#pragma once

#include <string>


namespace CtPetDoseStructFusion
{
  struct AppStatus
  {
    std::string patientId;
    std::string studyDescription;
    std::string currentSeriesIdInMainViewport;
    // note: if you add members here, update the serialization code below and deserialization in ct-dose-struct-fusion.ts -> onAppStatusUpdated()


    AppStatus()
    {
    }

    void ToJson(Json::Value &output) const
    {
      output["patientId"] = patientId;
      output["studyDescription"] = studyDescription;
      output["currentSeriesIdInMainViewport"] = currentSeriesIdInMainViewport;
    }
  };
}