TuttleOFX  1
sequenceParser::FileObject Class Reference

A container for files, directories and sequences. More...

#include <FileObject.hpp>

Inheritance diagram for sequenceParser::FileObject:

Public Member Functions

 FileObject ()
 FileObject (const EMaskOptions options)
 FileObject (const boost::filesystem::path &directory, const EMaskType &type, const EMaskOptions &options)
 Construct a FileObject with given informations.
 FileObject (const FileObject &other)
FileObjectoperator= (const FileObject &other)
virtual ~FileObject ()
virtual std::ostream & getCout (std::ostream &os) const =0
virtual std::vector
< boost::filesystem::path > 
getFiles () const =0
boost::filesystem::path getDirectory () const
boost::filesystem::path getAbsoluteDirectory () const
void setDirectory (const boost::filesystem::path &p)
void setDirectoryFromPath (const boost::filesystem::path &p)
EMaskOptions getMaskOptions () const
EMaskType getMaskType () const
virtual void clear ()
virtual FileObjectclone () const =0

Protected Member Functions

bool showProperties () const
bool showRelativePath () const
bool showAbsolutePath () const

Protected Attributes

boost::filesystem::path _directory
 directory
EMaskType _type
 specify type of object
EMaskOptions _options
 specify output options of object, common for each objects
std::string _kColorStd
std::string _kColorFolder
std::string _kColorFile
std::string _kColorSequence
std::string _kColorError

Private Member Functions

void init (const boost::filesystem::path &directory, const EMaskType &type, const EMaskOptions &options)
void setColorActive (bool activate=false)

Friends

std::ostream & operator<< (std::ostream &os, const FileObject &fo)

Detailed Description

A container for files, directories and sequences.

Definition at line 13 of file FileObject.hpp.


Constructor & Destructor Documentation

sequenceParser::FileObject::FileObject ( ) [inline]
sequenceParser::FileObject::FileObject ( const EMaskOptions  options) [inline]

Definition at line 25 of file FileObject.hpp.

References _directory, _options, _type, sequenceParser::eMaskOptionsColor, sequenceParser::eMaskTypeUndefined, and setColorActive().

Here is the call graph for this function:

sequenceParser::FileObject::FileObject ( const boost::filesystem::path &  directory,
const EMaskType type,
const EMaskOptions options 
) [inline]

Construct a FileObject with given informations.

Definition at line 36 of file FileObject.hpp.

References init().

Here is the call graph for this function:

sequenceParser::FileObject::FileObject ( const FileObject other) [inline]

Definition at line 41 of file FileObject.hpp.

References operator=().

Here is the call graph for this function:

sequenceParser::FileObject::~FileObject ( ) [virtual]

Definition at line 5 of file FileObject.cpp.


Member Function Documentation

virtual void sequenceParser::FileObject::clear ( ) [inline, virtual]
virtual FileObject* sequenceParser::FileObject::clone ( ) const [pure virtual]
boost::filesystem::path sequenceParser::FileObject::getAbsoluteDirectory ( ) const [inline]
virtual std::ostream& sequenceParser::FileObject::getCout ( std::ostream &  os) const [pure virtual]
boost::filesystem::path sequenceParser::FileObject::getDirectory ( ) const [inline]
Todo:

Definition at line 79 of file FileObject.hpp.

References _directory.

virtual std::vector<boost::filesystem::path> sequenceParser::FileObject::getFiles ( ) const [pure virtual]
Todo:
: can we remove this?

Implemented in sequenceParser::Sequence, sequenceParser::File, and sequenceParser::Folder.

Referenced by removeFileObject().

EMaskOptions sequenceParser::FileObject::getMaskOptions ( ) const [inline]

Definition at line 96 of file FileObject.hpp.

References _options.

EMaskType sequenceParser::FileObject::getMaskType ( ) const [inline]
void sequenceParser::FileObject::init ( const boost::filesystem::path &  directory,
const EMaskType type,
const EMaskOptions options 
) [inline, private]

Definition at line 117 of file FileObject.hpp.

References _directory, _options, _type, sequenceParser::eMaskOptionsColor, and setColorActive().

Referenced by FileObject().

Here is the call graph for this function:

FileObject& sequenceParser::FileObject::operator= ( const FileObject other) [inline]

Definition at line 46 of file FileObject.hpp.

References _directory, _kColorError, _kColorFile, _kColorFolder, _kColorSequence, _kColorStd, _options, and _type.

Referenced by FileObject().

void sequenceParser::FileObject::setColorActive ( bool  activate = false) [inline, private]
void sequenceParser::FileObject::setDirectory ( const boost::filesystem::path &  p) [inline]

Definition at line 89 of file FileObject.hpp.

References _directory.

Referenced by copy_sequence(), and sequenceParser::Sequence::Sequence().

void sequenceParser::FileObject::setDirectoryFromPath ( const boost::filesystem::path &  p)

Definition at line 15 of file FileObject.cpp.

References _directory.

Referenced by sequenceParser::Sequence::initFromDetection().

bool sequenceParser::FileObject::showAbsolutePath ( ) const [inline, protected]
bool sequenceParser::FileObject::showProperties ( ) const [inline, protected]
bool sequenceParser::FileObject::showRelativePath ( ) const [inline, protected]

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const FileObject fo 
) [friend]

Definition at line 9 of file FileObject.cpp.


Field Documentation

Definition at line 173 of file FileObject.hpp.

Referenced by sequenceParser::Sequence::getCout(), operator=(), and setColorActive().

std::string sequenceParser::FileObject::_kColorFile [protected]

Definition at line 171 of file FileObject.hpp.

Referenced by sequenceParser::File::getCout(), operator=(), and setColorActive().

Definition at line 170 of file FileObject.hpp.

Referenced by sequenceParser::Folder::getCout(), operator=(), and setColorActive().

specify type of object

Definition at line 164 of file FileObject.hpp.

Referenced by clear(), FileObject(), getMaskType(), init(), and operator=().


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