user_io.h File Reference

Support functions for I/O. More...

#include <o2scl/collection.h>

Go to the source code of this file.


Detailed Description

Idea for future:
Do input for array and 2d array objects, finish output functions. Make a macro for I/O for doubles, ints and other objects w/o a type() function.

Definition in file user_io.h.


Functions

template<class obj_t >
int o2scl_input (in_file_format *ins, obj_t *&obj, std::string &name, size_t &sz, size_t &sz2, bool verbose=false)
 Input one object from a file.
template<class obj_t >
int o2scl_input (in_file_format *ins, obj_t *&obj, std::string &name, size_t &sz, bool verbose=false)
 Input one object from a file.
template<class obj_t >
int o2scl_input (in_file_format *ins, obj_t *&obj, std::string &name, bool verbose=false)
 Input one object from a file.
template<class obj_t >
int o2scl_input_text (std::string fname, obj_t *&obj, std::string &name, size_t &sz, size_t &sz2, bool verbose=false)
 Input one object from a file.
template<class obj_t >
int o2scl_input_text (std::string fname, obj_t *&obj, std::string &name, size_t &sz, bool verbose=false)
 Input one object from a file.
template<class obj_t >
int o2scl_input_text (std::string fname, obj_t *&obj, std::string &name, bool verbose=false)
 Input one object from a file.
template<class obj_t >
int o2scl_input_name (in_file_format *ins, obj_t *&obj, std::string name, bool verbose=false)
 Input one object from a file.
template<class obj_t >
int o2scl_input_name_text (std::string fname, obj_t *&obj, std::string &name, bool verbose=false)
 Input one object from a file.
template<class obj_t >
int o2scl_input (in_file_format *ins, obj_t *&obj, bool verbose=false)
 Input one object from a file.
template<class obj_t >
int o2scl_input_text (std::string fname, obj_t *&obj, bool verbose=false)
 Input one object from a file.
template<class obj_t >
int o2scl_output (out_file_format *outs, obj_t *obj, std::string name, size_t &sz, size_t &sz2, bool verbose=false)
 Input one object from a file.
template<class obj_t >
int o2scl_output (out_file_format *outs, obj_t *obj, std::string name, size_t &sz, bool verbose=false)
 Input one object from a file.
template<class obj_t >
int o2scl_output (out_file_format *outs, obj_t *obj, std::string name, bool verbose=false)
 Input one object from a file.
template<class obj_t >
int o2scl_output_text (std::string fname, obj_t *obj, std::string name, size_t sz, size_t sz2, bool verbose=false)
 Input one object from a file.
template<class obj_t >
int o2scl_output_text (std::string fname, obj_t *obj, std::string name, size_t sz, bool verbose=false)
 Input one object from a file.
template<class obj_t >
int o2scl_output_text (std::string fname, obj_t *obj, std::string name, bool verbose=false)
 Input one object from a file.

Function Documentation

int o2scl_input ( in_file_format ins,
obj_t *&  obj,
bool  verbose = false 
) [inline]

This requires a default copy constructor and a type() function.

This does not disturb any objects in the collection. The pointer specified does not need to be in the collection and is not added to the collection.

Definition at line 342 of file user_io.h.

int o2scl_input ( in_file_format ins,
obj_t *&  obj,
std::string &  name,
bool  verbose = false 
) [inline]

This requires a default copy constructor and a type() function.

This does not disturb any objects in the collection. The pointer specified does not need to be in the collection and is not added to the collection.

Definition at line 165 of file user_io.h.

int o2scl_input ( in_file_format ins,
obj_t *&  obj,
std::string &  name,
size_t &  sz,
bool  verbose = false 
) [inline]

This requires a default copy constructor and a type() function.

This does not disturb any objects in the collection. The pointer specified does not need to be in the collection and is not added to the collection.

Definition at line 109 of file user_io.h.

int o2scl_input ( in_file_format ins,
obj_t *&  obj,
std::string &  name,
size_t &  sz,
size_t &  sz2,
bool  verbose = false 
) [inline]

This requires a default copy constructor and a type() function.

This does not disturb any objects in the collection. The pointer specified does not need to be in the collection and is not added to the collection.

Definition at line 50 of file user_io.h.

int o2scl_input_name ( in_file_format ins,
obj_t *&  obj,
std::string  name,
bool  verbose = false 
) [inline]

This requires a default copy constructor and a type() function.

This does not disturb any objects in the collection. The pointer specified does not need to be in the collection and is not added to the collection.

Definition at line 270 of file user_io.h.

int o2scl_input_name_text ( std::string  fname,
obj_t *&  obj,
std::string &  name,
bool  verbose = false 
) [inline]

This does not disturb any objects in the collection. The pointer specified does not need to be in the collection and is not added to the collection.

Definition at line 324 of file user_io.h.

int o2scl_input_text ( std::string  fname,
obj_t *&  obj,
bool  verbose = false 
) [inline]

This does not disturb any objects in the collection. The pointer specified does not need to be in the collection and is not added to the collection.

Definition at line 396 of file user_io.h.

int o2scl_input_text ( std::string  fname,
obj_t *&  obj,
std::string &  name,
bool  verbose = false 
) [inline]

This does not disturb any objects in the collection. The pointer specified does not need to be in the collection and is not added to the collection.

Definition at line 252 of file user_io.h.

int o2scl_input_text ( std::string  fname,
obj_t *&  obj,
std::string &  name,
size_t &  sz,
bool  verbose = false 
) [inline]

This does not disturb any objects in the collection. The pointer specified does not need to be in the collection and is not added to the collection.

Definition at line 236 of file user_io.h.

int o2scl_input_text ( std::string  fname,
obj_t *&  obj,
std::string &  name,
size_t &  sz,
size_t &  sz2,
bool  verbose = false 
) [inline]

This does not disturb any objects in the collection. The pointer specified does not need to be in the collection and is not added to the collection.

Definition at line 219 of file user_io.h.

int o2scl_output ( out_file_format outs,
obj_t *  obj,
std::string  name,
bool  verbose = false 
) [inline]

This requires a default copy constructor and a type() function.

This does not disturb any objects in the collection. The pointer specified does not need to be in the collection and is not added to the collection.

Idea for future:
Do input for array and 2d array objects

Definition at line 467 of file user_io.h.

int o2scl_output ( out_file_format outs,
obj_t *  obj,
std::string  name,
size_t &  sz,
bool  verbose = false 
) [inline]

This requires a default copy constructor and a type() function.

This does not disturb any objects in the collection. The pointer specified does not need to be in the collection and is not added to the collection.

Idea for future:
Do input for array and 2d array objects

Definition at line 441 of file user_io.h.

int o2scl_output ( out_file_format outs,
obj_t *  obj,
std::string  name,
size_t &  sz,
size_t &  sz2,
bool  verbose = false 
) [inline]

This requires a default copy constructor and a type() function.

This does not disturb any objects in the collection. The pointer specified does not need to be in the collection and is not added to the collection.

Idea for future:
Do input for array and 2d array objects

Definition at line 416 of file user_io.h.

int o2scl_output_text ( std::string  fname,
obj_t *  obj,
std::string  name,
bool  verbose = false 
) [inline]

This does not disturb any objects in the collection. The pointer specified does not need to be in the collection and is not added to the collection.

Definition at line 520 of file user_io.h.

int o2scl_output_text ( std::string  fname,
obj_t *  obj,
std::string  name,
size_t  sz,
bool  verbose = false 
) [inline]

This does not disturb any objects in the collection. The pointer specified does not need to be in the collection and is not added to the collection.

Definition at line 503 of file user_io.h.

int o2scl_output_text ( std::string  fname,
obj_t *  obj,
std::string  name,
size_t  sz,
size_t  sz2,
bool  verbose = false 
) [inline]

This does not disturb any objects in the collection. The pointer specified does not need to be in the collection and is not added to the collection.

Definition at line 486 of file user_io.h.


Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page