NCBI C++ ToolKit
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
rapidjson::FileWriteStream Class Reference

Search Toolkit Book for rapidjson::FileWriteStream

Wrapper of C file stream for input using fread(). More...

#include <misc/jsonwrapp/rapidjson11/filewritestream.h>

Public Types

typedef char Ch
 Character type. Only support char. More...
 

Public Member Functions

 FileWriteStream (std::FILE *fp, char *buffer, size_t bufferSize)
 
void Put (char c)
 
void PutN (char c, size_t n)
 
void Flush ()
 
char Peek () const
 
char Take ()
 
size_t Tell () const
 
char * PutBegin ()
 
size_t PutEnd (char *)
 

Private Member Functions

 FileWriteStream (const FileWriteStream &)
 
FileWriteStreamoperator= (const FileWriteStream &)
 

Private Attributes

std::FILE * fp_
 
char * buffer_
 
char * bufferEnd_
 
char * current_
 

Detailed Description

Wrapper of C file stream for input using fread().

Note
implements Stream concept

Definition at line 32 of file filewritestream.h.

Member Typedef Documentation

◆ Ch

Character type. Only support char.

Definition at line 34 of file filewritestream.h.

Constructor & Destructor Documentation

◆ FileWriteStream() [1/2]

rapidjson::FileWriteStream::FileWriteStream ( std::FILE *  fp,
char *  buffer,
size_t  bufferSize 
)
inline

Definition at line 36 of file filewritestream.h.

References RAPIDJSON_ASSERT.

◆ FileWriteStream() [2/2]

rapidjson::FileWriteStream::FileWriteStream ( const FileWriteStream )
private

Member Function Documentation

◆ Flush()

void rapidjson::FileWriteStream::Flush ( void  )
inline

Definition at line 63 of file filewritestream.h.

References result.

◆ operator=()

FileWriteStream& rapidjson::FileWriteStream::operator= ( const FileWriteStream )
private

◆ Peek()

char rapidjson::FileWriteStream::Peek ( ) const
inline

Definition at line 75 of file filewritestream.h.

References RAPIDJSON_ASSERT.

◆ Put()

void rapidjson::FileWriteStream::Put ( char  c)
inline

Definition at line 40 of file filewritestream.h.

◆ PutBegin()

char* rapidjson::FileWriteStream::PutBegin ( )
inline

Definition at line 78 of file filewritestream.h.

References RAPIDJSON_ASSERT.

◆ PutEnd()

size_t rapidjson::FileWriteStream::PutEnd ( char *  )
inline

Definition at line 79 of file filewritestream.h.

References RAPIDJSON_ASSERT.

◆ PutN()

void rapidjson::FileWriteStream::PutN ( char  c,
size_t  n 
)
inline

Definition at line 47 of file filewritestream.h.

References n.

Referenced by rapidjson::PutN().

◆ Take()

char rapidjson::FileWriteStream::Take ( )
inline

Definition at line 76 of file filewritestream.h.

References RAPIDJSON_ASSERT.

◆ Tell()

size_t rapidjson::FileWriteStream::Tell ( ) const
inline

Definition at line 77 of file filewritestream.h.

References RAPIDJSON_ASSERT.

Member Data Documentation

◆ buffer_

char* rapidjson::FileWriteStream::buffer_
private

Definition at line 87 of file filewritestream.h.

◆ bufferEnd_

char* rapidjson::FileWriteStream::bufferEnd_
private

Definition at line 88 of file filewritestream.h.

◆ current_

char* rapidjson::FileWriteStream::current_
private

Definition at line 89 of file filewritestream.h.

◆ fp_

std::FILE* rapidjson::FileWriteStream::fp_
private

Definition at line 86 of file filewritestream.h.


The documentation for this class was generated from the following file:
Modified on Tue Apr 23 07:37:18 2024 by modify_doxy.py rev. 669887