QMCPACK
IO Namespace Reference

Classes

class  ASCIISliceMaker
 
class  IOSectionClass
 Wrapper class for IOTreeClass that gives a nearly identical interface as the OutputSectionClass. More...
 
class  IOTreeASCIIClass
 This is the ASCII specialization of IOTreeClass for ASCII text files. More...
 
class  IOTreeClass
 This class stores a tree of input file sections. More...
 
class  IOVarASCII
 
class  IOVarASCII< bool, 0 >
 
class  IOVarASCII< double, 0 >
 
class  IOVarASCII< int, 0 >
 
class  IOVarASCII< std::complex< double >, 0 >
 
class  IOVarASCII< std::string, 0 >
 
class  IOVarBase
 
class  SliceCheck
 The following is a template trick for counting how many /// dimension reductions we have made to a dataset by indexing /// by integer arguments. More...
 
class  SliceCheck< int >
 
class  TokenClass
 This class holds an ASCII token, which is just a std::string and the line number in which it appeared in the file. More...
 
class  TypeConvert
 The following are template tricks for converting a C++ type /// into an enumerated type variable. More...
 
class  TypeConvert< bool >
 
class  TypeConvert< double >
 
class  TypeConvert< int >
 
class  TypeConvert< std::complex< double > >
 
class  TypeConvert< std::string >
 

Enumerations

enum  IODataType {
  DOUBLE_TYPE, INT_TYPE, STRING_TYPE, BOOL_TYPE,
  COMPLEX_TYPE, INVALID
}
 
enum  IOFileType { ASCII_TYPE }
 

Functions

void SetVerbose (bool verb)
 
std::string Extension (std::string fileName)
 In the file name format name.extn, returns the extension. More...
 
IOTreeClassReadTree (std::string fileName, std::string myName, IOTreeClass *parent)
 This function takes a filename, determines it extension, creates a new IOTreeASCIIClass or IOTreeHDF5Class based on the extension, and calls OpenFile on the new object. More...
 
IOTreeClassNewTree (std::string fileName, std::string myName, IOTreeClass *parent)
 
template<typename T >
std::string TypeString (T &val)
 
template<>
std::string TypeString (double &val)
 
template<>
std::string TypeString (int &val)
 
template<>
std::string TypeString (std::string &val)
 
template<>
std::string TypeString (bool &val)
 
template<>
std::string TypeString (std::complex< double > &val)
 

Variables

std::ostream verr
 

Class Documentation

◆ IO::TokenClass

class IO::TokenClass

This class holds an ASCII token, which is just a std::string and the line number in which it appeared in the file.

Definition at line 30 of file IOASCII.h.

+ Collaboration diagram for TokenClass:
Class Members
int LineNumber
string Str

Enumeration Type Documentation

◆ IODataType

enum IODataType
Enumerator
DOUBLE_TYPE 
INT_TYPE 
STRING_TYPE 
BOOL_TYPE 
COMPLEX_TYPE 
INVALID 

Definition at line 26 of file IOVarBase.h.

◆ IOFileType

enum IOFileType
Enumerator
ASCII_TYPE 

Definition at line 35 of file IOVarBase.h.

36 {
38 } IOFileType;
IOFileType
Definition: IOVarBase.h:35

Function Documentation

◆ Extension()

std::string IO::Extension ( std::string  fileName)
inline

In the file name format name.extn, returns the extension.

Actually returns everything after the trailing.

◆ NewTree()

IOTreeClass* IO::NewTree ( std::string  fileName,
std::string  myName,
IOTreeClass parent 
)

◆ ReadTree()

IOTreeClass* IO::ReadTree ( std::string  fileName,
std::string  myName,
IOTreeClass parent 
)

This function takes a filename, determines it extension, creates a new IOTreeASCIIClass or IOTreeHDF5Class based on the extension, and calls OpenFile on the new object.

Extensions: .h5: HDF5 .xml: XML .anything_else ASCII

◆ SetVerbose()

void IO::SetVerbose ( bool  verb)

◆ TypeString() [1/6]

std::string IO::TypeString ( T &  val)
inline

Definition at line 397 of file IOVarBase.h.

Referenced by IOVarASCII< T, RANK >::Print().

398 {
399  return "unknown";
400 }

◆ TypeString() [2/6]

std::string IO::TypeString ( double &  val)
inline

Definition at line 402 of file IOVarBase.h.

403 {
404  return "double";
405 }

◆ TypeString() [3/6]

std::string IO::TypeString ( int &  val)
inline

Definition at line 407 of file IOVarBase.h.

408 {
409  return "int";
410 }

◆ TypeString() [4/6]

std::string IO::TypeString ( std::string &  val)
inline

Definition at line 412 of file IOVarBase.h.

413 {
414  return "string";
415 }

◆ TypeString() [5/6]

std::string IO::TypeString ( bool &  val)
inline

Definition at line 417 of file IOVarBase.h.

418 {
419  return "bool";
420 }

◆ TypeString() [6/6]

std::string IO::TypeString ( std::complex< double > &  val)
inline

Definition at line 422 of file IOVarBase.h.

423 {
424  return "complex";
425 }

Variable Documentation

◆ verr

std::ostream verr