Gemmi C++ API
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
gemmi::MaybeGzipped Class Reference

#include <gz.hpp>

Inheritance diagram for gemmi::MaybeGzipped:
[legend]

Classes

struct  GzStream
 

Public Member Functions

 MaybeGzipped (const std::string &path)
 
 ~MaybeGzipped ()
 
size_t gzread_checked (void *buf, size_t len)
 
bool is_compressed () const
 
std::string basepath () const
 
CharArray uncompress_into_buffer (size_t limit=0)
 
GzStream get_uncompressing_stream ()
 
- Public Member Functions inherited from gemmi::BasicInput
 BasicInput (const std::string &path)
 
const std::string & path () const
 
const std::string & basepath () const
 
bool is_stdin () const
 
bool is_compressed () const
 
FileStream get_uncompressing_stream () const
 
CharArray uncompress_into_buffer (size_t=0)
 

Detailed Description

Definition at line 65 of file gz.hpp.

Constructor & Destructor Documentation

◆ MaybeGzipped()

gemmi::MaybeGzipped::MaybeGzipped ( const std::string &  path)
inlineexplicit

Definition at line 74 of file gz.hpp.

◆ ~MaybeGzipped()

gemmi::MaybeGzipped::~MaybeGzipped ( )
inline

Definition at line 76 of file gz.hpp.

Member Function Documentation

◆ gzread_checked()

size_t gemmi::MaybeGzipped::gzread_checked ( void buf,
size_t  len 
)
inline

Definition at line 85 of file gz.hpp.

◆ is_compressed()

bool gemmi::MaybeGzipped::is_compressed ( ) const
inline

Definition at line 100 of file gz.hpp.

◆ basepath()

std::string gemmi::MaybeGzipped::basepath ( ) const
inline

Definition at line 101 of file gz.hpp.

◆ uncompress_into_buffer()

CharArray gemmi::MaybeGzipped::uncompress_into_buffer ( size_t  limit = 0)
inline

Definition at line 105 of file gz.hpp.

◆ get_uncompressing_stream()

GzStream gemmi::MaybeGzipped::get_uncompressing_stream ( )
inline

Definition at line 136 of file gz.hpp.


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