#include <pnmsource.hh>
◆ Ptr
◆ Source()
| Scroom::Pnm::Source::Source |
( |
std::string |
fileName, |
|
|
std::ifstream |
pnm, |
|
|
BitmapMetaData |
bmd |
|
) |
| |
|
protected |
153 ,
m_bmd(std::move(bmd))
154 {
155 }
std::ifstream m_preOpenedPnm
Definition pnmsource.hh:40
BitmapMetaData m_bmd
Definition pnmsource.hh:42
std::string m_fileName
Definition pnmsource.hh:39
◆ done()
| void Scroom::Pnm::Source::done |
( |
| ) |
|
|
overridevirtual |
Done reading bitmap data
Any open files can be closed now
Implements SourcePresentation.
std::ifstream m_pnm
Definition pnmsource.hh:41
◆ getName()
| std::string Scroom::Pnm::Source::getName |
( |
| ) |
|
|
inlineoverridevirtual |
◆ resetPresentation()
| bool Scroom::Pnm::Source::resetPresentation |
( |
| ) |
|
158 {
160
162 {
165 {
166 m_pnm = std::move(std::get<1>(*
r));
167 }
168 else
169 {
171 {
172 m_logger->error(
"Can't reload. Bitmap changed too much");
175 }
176
177 return false;
178 }
179 }
181
182 return true;
183 }
#define ensure(expr)
Definition assertions.hh:35
Scroom::Logger m_logger
Definition pnmsource.hh:43
boost::optional< std::tuple< Scroom::TiledBitmap::BitmapMetaData, std::ifstream, SourceType > > open(const Scroom::Logger &logger, const std::string &fileName)
Definition pnmsource.cc:55
std::string to_string(const BitmapMetaData &bmd)
Definition layerspecforbitmap.cc:28
bool approx(const BitmapMetaData &left, const BitmapMetaData &right)
Definition pnmsource.cc:21
◆ m_bmd
◆ m_fileName
| std::string Scroom::Pnm::Source::m_fileName |
|
protected |
◆ m_logger
◆ m_pnm
| std::ifstream Scroom::Pnm::Source::m_pnm |
|
protected |
◆ m_preOpenedPnm
| std::ifstream Scroom::Pnm::Source::m_preOpenedPnm |
|
protected |
The documentation for this class was generated from the following files: