Bitcoin ABC 0.30.7
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 (Span< std::byte > dst)
 
void ignore (size_t nSize)
 
void write (Span< const std::byte > src)
 
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 631 of file streams.h.

Constructor & Destructor Documentation

◆ CAutoFile()

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

Definition at line 637 of file streams.h.

Member Function Documentation

◆ GetType()

int CAutoFile::GetType ( ) const
inline

Definition at line 639 of file streams.h.

◆ GetVersion()

int CAutoFile::GetVersion ( ) const
inline

Definition at line 640 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 642 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 652 of file streams.h.

Here is the call graph for this function:

Member Data Documentation

◆ nType

const int CAutoFile::nType
private

Definition at line 633 of file streams.h.

◆ nVersion

const int CAutoFile::nVersion
private

Definition at line 634 of file streams.h.


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