Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * /brief class TileWriter allows to write result tiles by
- * TileBitmapReader and TileDataReader instances.
- * which count & control the number of available in tile values
- * Class allows to catch user errors.
- */
- class TileWriter : boost::noncopyable
- {
- private:
- Value _trueValue;
- Value _falseValue;
- TileErrorInterface* _error;
- position_t _processed;
- position_t _left;
- Value _value;
- RLEPayload::append_iterator* _appender;
- TypeId _type;
- private:
- void fill(position_t count, bool data) const;
- void init();
- public:
- TileWriter(TileErrorInterface* error, TypeId const& a_type= TID_BOOL);
- virtual ~TileWriter();
- bool work() const;
- position_t left() const;
- position_t processed() const;
- Value& value();
- void reset(position_t count);
- void complete();
- void copy(TileBitmapReader& reader, position_t count);
- void copy(TileDataReader& reader, position_t count);
- MessageBuilder& print(MessageBuilder&) const;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement