JLPIOUtils Class Reference

#include <jlpioutils.h>

List of all members.

Public Member Functions

 JLPIOUtils ()
 ~JLPIOUtils ()

Static Public Member Functions

static void readDirectory (const string directoryLocation, vector< string > *result, string extension="", long start=-1, long end=-1)
static string vectorToString (vector< float > *a, string separator="\t")
static string vectorToString (vector< double > *a, string separator="\t")


Detailed Description

Provides utilities for io operations
Author:
Jean-Luc Perret


Constructor & Destructor Documentation

JLPIOUtils::JLPIOUtils  ) 
 

class constructor.

JLPIOUtils::~JLPIOUtils  ) 
 

class desctructor.


Member Function Documentation

static void JLPIOUtils::readDirectory const string  directoryLocation,
vector< string > *  result,
string  extension = "",
long  start = -1,
long  end = -1
[static]
 

list files in a directory. usage: vector<string> fileVector; readDirectory ( "/home/anydir", fileVector); start and end allow to limit the number of file returned: limiting from start to end (included) starting count from 0 the defauld (-1) indicates no limits.

static string JLPIOUtils::vectorToString vector< double > *  a,
string  separator = "\t"
[static]
 

concatenates the entries of a vector of double into a string, separated by a given separator.

static string JLPIOUtils::vectorToString vector< float > *  a,
string  separator = "\t"
[static]
 

concatenates the entries of a vector of float into a string, separated by a given separator.


The documentation for this class was generated from the following file:
Generated on Wed Nov 28 12:12:51 2007 for ChemCpp by  doxygen 1.4.6