#ifndef __AH_EXAMPLE_H #define __AH_EXAMPLE_H #include std::fstream* make_fstream( const char* name, char mode ); void close_fstream( std::fstream& stream ); // does not deallocate, python will do it eventually (I think). struct example { float x; example( float xx = 0 ); example( std::istream& in_stream ); // for pyROOT void pickle( std::ostream& out_stream ) const; // for pyROOT void dump() const; // easier to use from iPython/pyROOT, which fails to call this method if it is renamed "print" friend std::ostream& operator<< ( std::ostream& out_stream, const example& ex ); friend std::istream& operator>> ( std::istream& in_stream, example& ex ); }; #endif