Diana Software
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
QFileList Class Reference

File list handler. More...

Public Member Functions

 QFileList ()
 
 ~QFileList ()
 
void Add (const std::string &file)
 
void Add (const std::list< std::string > &list)
 
void SetFilesPath (const std::string &path)
 
std::string GetFilesPath ()
 
std::list< std::string > GetList (const std::string &option="")
 
std::vector< std::string > GetListVec (const std::string &option="")
 
void Write (const std::string &fileListPath) const
 
void Read (const std::string &fileListPath)
 

Static Public Member Functions

static void Write (const std::string &fileListFile, const std::list< std::string > &fileList, const std::string &filesPath)
 
static std::list< std::string > Read (const std::string &fileListFile, const std::string &option)
 

Private Attributes

std::list< std::string > fFileList
 
std::string fFilesPath
 

Detailed Description

File list handler.

Author
Marco Vignati

Definition at line 13 of file QFileList.hh.

Constructor & Destructor Documentation

◆ QFileList()

QFileList::QFileList ( )

Definition at line 5 of file QFileList.cc.

References fFileList, and fFilesPath.

◆ ~QFileList()

QFileList::~QFileList ( )

Definition at line 11 of file QFileList.cc.

Member Function Documentation

◆ Add() [1/2]

void QFileList::Add ( const std::list< std::string > &  list)

Definition at line 15 of file QFileList.cc.

References Add().

◆ Add() [2/2]

void QFileList::Add ( const std::string &  file)
inline

Definition at line 21 of file QFileList.hh.

References fFileList.

Referenced by Add(), and Write().

◆ GetFilesPath()

std::string QFileList::GetFilesPath ( )
inline

Definition at line 24 of file QFileList.hh.

References fFilesPath.

◆ GetList()

std::list< std::string > QFileList::GetList ( const std::string &  option = "")

Definition at line 24 of file QFileList.cc.

References fFileList.

Referenced by GetListVec(), and Read().

◆ GetListVec()

std::vector< std::string > QFileList::GetListVec ( const std::string &  option = "")

Definition at line 40 of file QFileList.cc.

References GetList().

◆ Read() [1/2]

std::list< std::string > QFileList::Read ( const std::string &  fileListFile,
const std::string &  option 
)
static

Definition at line 110 of file QFileList.cc.

References GetList(), and Read().

◆ Read() [2/2]

void QFileList::Read ( const std::string &  fileListPath)

Definition at line 67 of file QFileList.cc.

References fFileList, and fFilesPath.

Referenced by QChain::Add(), QFileReader::Init(), main(), and Read().

◆ SetFilesPath()

void QFileList::SetFilesPath ( const std::string &  path)
inline

Definition at line 23 of file QFileList.hh.

References fFilesPath.

Referenced by Write().

◆ Write() [1/2]

void QFileList::Write ( const std::string &  fileListFile,
const std::list< std::string > &  fileList,
const std::string &  filesPath 
)
static

Definition at line 59 of file QFileList.cc.

References Add(), SetFilesPath(), and Write().

◆ Write() [2/2]

void QFileList::Write ( const std::string &  fileListPath) const

Definition at line 45 of file QFileList.cc.

References fFileList, fFilesPath, and of.

Referenced by Write(), and QFileWriter::WriteFilesList().

Member Data Documentation

◆ fFileList

std::list<std::string> QFileList::fFileList
private

Definition at line 36 of file QFileList.hh.

Referenced by Add(), GetList(), QFileList(), Read(), and Write().

◆ fFilesPath

std::string QFileList::fFilesPath
private

Definition at line 37 of file QFileList.hh.

Referenced by GetFilesPath(), QFileList(), Read(), SetFilesPath(), and Write().


The documentation for this class was generated from the following files: