vg
tools for working with variation graphs
Public Member Functions | Private Attributes | List of all members
vg::io::JSONStreamHelper< T > Class Template Reference

#include <json_stream_helper.hpp>

Public Member Functions

 JSONStreamHelper (const std::string &file_name)
 
 ~JSONStreamHelper ()
 
std::function< bool(T &)> get_read_fn ()
 
int64_t write (std::ostream &out, bool json_out=false, int64_t buf_size=1000)
 

Private Attributes

FILE * _fp
 

Constructor & Destructor Documentation

◆ JSONStreamHelper()

template<class T >
vg::io::JSONStreamHelper< T >::JSONStreamHelper ( const std::string &  file_name)
inline

◆ ~JSONStreamHelper()

template<class T >
vg::io::JSONStreamHelper< T >::~JSONStreamHelper
inline

Member Function Documentation

◆ get_read_fn()

template<class T >
std::function< bool(T &)> vg::io::JSONStreamHelper< T >::get_read_fn
inline

◆ write()

template<class T >
int64_t vg::io::JSONStreamHelper< T >::write ( std::ostream &  out,
bool  json_out = false,
int64_t  buf_size = 1000 
)
inline

Member Data Documentation

◆ _fp

template<class T >
FILE* vg::io::JSONStreamHelper< T >::_fp
private

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