Bitcoin ABC  0.28.12
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
CAutoFile Class Reference

#include <streams.h>

Inheritance diagram for CAutoFile:
[legend]
Collaboration diagram for CAutoFile:
[legend]

Public Member Functions

 CAutoFile (FILE *filenew, int nTypeIn, int nVersionIn)
 
int GetType () const
 
int GetVersion () const
 
template<typename T >
CAutoFileoperator<< (const T &obj)
 
template<typename T >
CAutoFileoperator>> (T &&obj)
 
- Public Member Functions inherited from AutoFile
 AutoFile (FILE *filenew)
 
 ~AutoFile ()
 
 AutoFile (const AutoFile &)=delete
 
AutoFileoperator= (const AutoFile &)=delete
 
int fclose ()
 
FILE * release ()
 Get wrapped FILE* with transfer of ownership. More...
 
FILE * Get () const
 Get wrapped FILE* without transfer of ownership. More...
 
bool IsNull () const
 Return true if the wrapped FILE* is nullptr, false otherwise. More...
 
void read (char *pch, size_t nSize)
 
void ignore (size_t nSize)
 
void write (const char *pch, size_t nSize)
 
template<typename T >
AutoFileoperator<< (const T &obj)
 
template<typename T >
AutoFileoperator>> (T &&obj)
 

Private Attributes

const int nType
 
const int nVersion
 

Additional Inherited Members

- Protected Attributes inherited from AutoFile
FILE * file
 

Detailed Description

Definition at line 648 of file streams.h.

Constructor & Destructor Documentation

◆ CAutoFile()

CAutoFile::CAutoFile ( FILE *  filenew,
int  nTypeIn,
int  nVersionIn 
)
inline

Definition at line 654 of file streams.h.

Member Function Documentation

◆ GetType()

int CAutoFile::GetType ( ) const
inline

Definition at line 656 of file streams.h.

◆ GetVersion()

int CAutoFile::GetVersion ( ) const
inline

Definition at line 657 of file streams.h.

Here is the caller graph for this function:

◆ operator<<()

template<typename T >
CAutoFile& CAutoFile::operator<< ( const T &  obj)
inline

Definition at line 659 of file streams.h.

Here is the call graph for this function:

◆ operator>>()

template<typename T >
CAutoFile& CAutoFile::operator>> ( T &&  obj)
inline

Definition at line 669 of file streams.h.

Here is the call graph for this function:

Member Data Documentation

◆ nType

const int CAutoFile::nType
private

Definition at line 650 of file streams.h.

◆ nVersion

const int CAutoFile::nVersion
private

Definition at line 651 of file streams.h.


The documentation for this class was generated from the following file: