npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
vectorAsText.hh File Reference

Utilities for reading/writing std::vector objects from/to text files. More...

#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <climits>

Go to the source code of this file.

Namespaces

 npstat
 

Functions

template<typename T >
bool npstat::dumpVectorAsText (const std::vector< T > &v, std::ostream &asciiStream, const unsigned long firstElementToDump=0, const unsigned long nElementsToDump=ULONG_MAX)
 
template<typename T >
bool npstat::fillVectorFromText (std::istream &asciiStream, std::vector< T > *v, const unsigned long maxElementsToFill=ULONG_MAX)
 

Detailed Description

Utilities for reading/writing std::vector objects from/to text files.

Author: I. Volobouev

January 2023