27 #ifndef RAPIDJSON_GENERICSTREAM_H_
28 #define RAPIDJSON_GENERICSTREAM_H_
49 if(
is_->eof())
return '\0';
50 return static_cast<char>(
is_->peek());
54 if(
is_->eof())
return '\0';
55 return static_cast<char>(
is_->get());
59 return (
int)
is_->tellg();
89 for (
size_t i = 0;
i <
n; ++
i) {
99 return (
int)
os_.tellp();
const unsigned n
Definition: CG3DPackingUnitTest.cpp:32
Wrapper of std::istream for input.
Definition: genericstream.h:36
Ch Peek() const
Definition: genericstream.h:48
std::istream * is_
Definition: genericstream.h:68
size_t PutEnd(Ch *)
Definition: genericstream.h:66
Ch * PutBegin()
Definition: genericstream.h:65
void Put(Ch)
Definition: genericstream.h:63
char Ch
Character type (byte).
Definition: genericstream.h:38
GenericReadStream(std::istream &is)
Constructor.
Definition: genericstream.h:44
void Flush()
Definition: genericstream.h:64
Ch Take()
Definition: genericstream.h:53
size_t Tell() const
Definition: genericstream.h:58
Wrapper of std::ostream for output.
Definition: genericstream.h:73
void PutN(char c, size_t n)
Definition: genericstream.h:88
size_t Tell() const
Definition: genericstream.h:98
char Take()
Definition: genericstream.h:104
std::ostream & os_
Definition: genericstream.h:109
char Peek() const
Definition: genericstream.h:103
char * PutBegin()
Definition: genericstream.h:105
char Ch
Character type. Only support char.
Definition: genericstream.h:75
size_t PutEnd(char *)
Definition: genericstream.h:106
void Put(char c)
Definition: genericstream.h:84
GenericWriteStream(std::ostream &os)
Constructor.
Definition: genericstream.h:81
void Flush()
Definition: genericstream.h:94
const std::complex< Mdouble > i
Definition: ExtendedMath.h:51
Definition: document.h:38
void PutN(GenericWriteStream &stream, char c, size_t n)
Definition: genericstream.h:113
#define RAPIDJSON_ASSERT(x)
Assertion.
Definition: rapidjson.h:105