view Applications/Samples/Deprecated/SimpleViewer/AppStatus.h @ 1348:eac254fb6791 broker

Moved Application/Samples/* to Application/Samples/Deprecated/* (remaining) + moved Samples/* to Samples/Deprecated/*
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 07 Apr 2020 14:31:28 +0200
parents bfd77672d825
children
line wrap: on
line source

#pragma once

#include <string>


namespace SimpleViewer
{
  struct AppStatus
  {
    std::string patientId;
    std::string studyDescription;
    std::string currentInstanceIdInMainViewport;
    // note: if you add members here, update the serialization code below and deserialization in simple-viewer.ts -> onAppStatusUpdated()


    AppStatus()
    {
    }

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