4#ifndef OPENCV_slideio_slide_HPP
5#define OPENCV_slideio_slide_HPP
7#include "slideio/core/slideio_core_def.hpp"
8#include "slideio/core/cvscene.hpp"
12#pragma warning( push )
13#pragma warning(disable: 4251)
29 friend class ImageDriver;
43 virtual std::shared_ptr<CVScene>
getScene(
int index)
const = 0;
45 virtual std::shared_ptr<CVScene> getSceneByName(
const std::string& name);
54 return static_cast<int>(m_auxNames.size());
60 virtual std::shared_ptr<CVScene> getAuxImage(
const std::string& sceneName)
const;
68 m_driverId = driverId;
75 static MetadataFormat recognizeMetadataFormat(
const std::string& metadata);
77 std::string toString()
const;
79 std::string m_rawMetadata;
80 MetadataFormat m_metadataFormat = MetadataFormat::None;
81 std::list<std::string> m_auxNames;
82 std::string m_driverId;
86#define CVSlidePtr std::shared_ptr<slideio::CVSlide>
CVSlide is an base class for representation of medical slide.
Definition: cvslide.hpp:28
virtual std::string getFilePath() const =0
The method returns a string which represents file path of the slide.
virtual int getNumAuxImages() const
The method returns number of auxiliary images contained in the slide.
Definition: cvslide.hpp:53
virtual const std::list< std::string > & getAuxImageNames() const
The method returns list of names of auxiliary images contained in the slide.
Definition: cvslide.hpp:49
virtual int getNumScenes() const =0
The method returns number of Scene objects contained in the slide.
virtual std::shared_ptr< CVScene > getScene(int index) const =0
The method returns a CVScene object by the scene index.
virtual MetadataFormat getMetadataFormat() const
The method returns a string containing serialized metadata of the slide.
Definition: cvslide.hpp:65
void setDriverId(const std::string &driverId)
The method sets driver id of the slide.
Definition: cvslide.hpp:67
virtual const std::string & getRawMetadata() const
The method returns a string containing serialized metadata of the slide.
Definition: cvslide.hpp:41
const std::string & getDriverId() const
The method returns driver id of the slide.
Definition: cvslide.hpp:71
Definition: exceptions.hpp:15