view Applications/Samples/SimpleViewer/AppStatus.h @ 868:b7f3cd9efe6f

Added tag toa2019062502 for changeset fe96057e97b9
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 25 Jun 2019 18:04:09 +0200
parents daa04d15192c
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;
    }
  };
}