39 #if !defined(TAWARA_INT_ELEMENT_H_)
40 #define TAWARA_INT_ELEMENT_H_
71 VoidElement(std::streamsize tgt_size,
bool fill=
false);
92 void set_size(std::streamsize tgt_size);
95 std::streamsize
size()
const;
98 bool fill()
const {
return fill_; }
116 virtual std::streamsize
write(std::ostream& output);
131 virtual std::streamsize write_body(std::ostream& output);
134 std::streamsize
read(std::istream& input);
138 std::streamsize size_;
142 std::streamsize extra_size_;
145 virtual std::streamsize body_size()
const {
return size_; }
159 virtual std::streamsize read_body(std::istream& input,
160 std::streamsize size);
167 #endif // TAWARA_INT_ELEMENT_H_
std::streamsize write(ID id, std::ostream &output)
Write an ID to an output stream.
bool fill() const
Get the fill setting.
std::streamsize size(ID id)
Get the number of bytes required by an ID.
ReadResult read(std::istream &input)
Read an ID from an input stream.
The Element interface, a basic interface to an element object.
void fill(bool fill)
Set the fill setting.