Logo
ApraPipes 1.0
Loading...
Searching...
No Matches
FilenameStrategy Class Reference

#include <FilenameStrategy.h>

Inheritance diagram for FilenameStrategy:
Inheritance graph
Collaboration diagram for FilenameStrategy:
Collaboration graph

Public Member Functions

virtual ~FilenameStrategy ()
 
bool IsConnected () const
 
virtual bool Connect ()
 
bool Disconnect ()
 
virtual bool canCache ()
 
void play (bool play)
 
void jump (uint64_t index)
 
virtual std::string GetFileNameToUse (bool checkForExistence, uint64_t &index)
 
void SetReadLoop (bool readLoop)
 

Static Public Member Functions

static boost::shared_ptr< FilenameStrategygetStrategy (const std::string &strPath, int startIndex, int maxIndex, bool readLoop, const std::vector< std::string > &files=std::vector< std::string >(), bool appendFlag=false)
 
static bool fileExists (const char *path)
 

Protected Member Functions

 FilenameStrategy (const std::string &strPath, int startIndex, int maxIndex, bool readLoop, bool appendFlag)
 
 FilenameStrategy (bool readLoop)
 
void incrementIndex ()
 

Protected Attributes

bool mIsConnected
 
bool mReadLoop
 
bool mAppend
 
std::string mDirName
 
int mCurrentIndex
 
int mStartIndex
 
int mMaxIndex
 

Private Member Functions

std::string GetFileNameForCurrentIndex (bool checkForExistence) const
 

Private Attributes

std::string mFileBaseName
 
std::string mFileTailName
 
bool mPlay
 
short mWildCardLen
 

Constructor & Destructor Documentation

◆ ~FilenameStrategy()

FilenameStrategy::~FilenameStrategy ( )
virtual

◆ FilenameStrategy() [1/2]

FilenameStrategy::FilenameStrategy ( const std::string & strPath,
int startIndex,
int maxIndex,
bool readLoop,
bool appendFlag = false )
protected
Here is the caller graph for this function:

◆ FilenameStrategy() [2/2]

FilenameStrategy::FilenameStrategy ( bool readLoop)
protected

Member Function Documentation

◆ canCache()

bool FilenameStrategy::canCache ( )
virtual

Reimplemented in BoostDirectoryStrategy, and ListStrategy.

◆ Connect()

bool FilenameStrategy::Connect ( )
virtual

Reimplemented in BoostDirectoryStrategy, and ListStrategy.

Here is the call graph for this function:

◆ Disconnect()

bool FilenameStrategy::Disconnect ( )

◆ fileExists()

bool FilenameStrategy::fileExists ( const char * path)
static
Here is the caller graph for this function:

◆ GetFileNameForCurrentIndex()

std::string FilenameStrategy::GetFileNameForCurrentIndex ( bool checkForExistence) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetFileNameToUse()

std::string FilenameStrategy::GetFileNameToUse ( bool checkForExistence,
uint64_t & index )
virtual

Reimplemented in BoostDirectoryStrategy, and ListStrategy.

Here is the call graph for this function:

◆ getStrategy()

boost::shared_ptr< FilenameStrategy > FilenameStrategy::getStrategy ( const std::string & strPath,
int startIndex,
int maxIndex,
bool readLoop,
const std::vector< std::string > & files = std::vector<std::string>(),
bool appendFlag = false )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ incrementIndex()

void FilenameStrategy::incrementIndex ( )
protected
Here is the caller graph for this function:

◆ IsConnected()

bool FilenameStrategy::IsConnected ( ) const
Here is the caller graph for this function:

◆ jump()

void FilenameStrategy::jump ( uint64_t index)

◆ play()

void FilenameStrategy::play ( bool play)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetReadLoop()

void FilenameStrategy::SetReadLoop ( bool readLoop)

Member Data Documentation

◆ mAppend

bool FilenameStrategy::mAppend
protected

◆ mCurrentIndex

int FilenameStrategy::mCurrentIndex
protected

◆ mDirName

std::string FilenameStrategy::mDirName
protected

◆ mFileBaseName

std::string FilenameStrategy::mFileBaseName
private

◆ mFileTailName

std::string FilenameStrategy::mFileTailName
private

◆ mIsConnected

bool FilenameStrategy::mIsConnected
protected

◆ mMaxIndex

int FilenameStrategy::mMaxIndex
protected

◆ mPlay

bool FilenameStrategy::mPlay
private

◆ mReadLoop

bool FilenameStrategy::mReadLoop
protected

◆ mStartIndex

int FilenameStrategy::mStartIndex
protected

◆ mWildCardLen

short FilenameStrategy::mWildCardLen
private

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