TuttleOFX  1
sequenceParser::detail::FileNumbers Class Reference

Numbers inside a filename. Each number can be a time inside a sequence. Internal structures to detect sequence inside a directory. More...

#include <FileNumbers.hpp>

Data Structures

struct  SortByDigit
struct  SortByNumber
struct  SortByPadding

Public Types

typedef FileNumbers This
typedef std::pair< Time,
std::string > 
Pair
typedef std::vector< PairVec

Public Member Functions

 FileNumbers ()
void push_back (const std::string &s)
void clear ()
const std::string & getString (const std::size_t &i) const
std::size_t getNbDigits (const std::size_t &i) const
std::size_t getPadding (const std::size_t &i) const
Time getTime (const std::size_t &i) const
std::size_t size () const
bool operator< (const This &v) const
bool rangeEquals (const This &v, const size_t begin, const size_t end) const

Static Public Member Functions

static bool hasSign (const std::string &s)
static std::size_t extractPadding (const std::string &str)
static std::size_t extractNbDigits (const std::string &s)

Private Attributes

Vec _numbers

Friends

std::ostream & operator<< (std::ostream &os, const This &p)

Detailed Description

Numbers inside a filename. Each number can be a time inside a sequence. Internal structures to detect sequence inside a directory.

Definition at line 22 of file FileNumbers.hpp.


Member Typedef Documentation

typedef std::pair<Time, std::string> sequenceParser::detail::FileNumbers::Pair

Definition at line 27 of file FileNumbers.hpp.

Definition at line 28 of file FileNumbers.hpp.


Constructor & Destructor Documentation

sequenceParser::detail::FileNumbers::FileNumbers ( ) [inline]

Definition at line 32 of file FileNumbers.hpp.

References _numbers.


Member Function Documentation

void sequenceParser::detail::FileNumbers::clear ( ) [inline]

Definition at line 58 of file FileNumbers.hpp.

References _numbers.

static std::size_t sequenceParser::detail::FileNumbers::extractNbDigits ( const std::string &  s) [inline, static]

Definition at line 79 of file FileNumbers.hpp.

References hasSign().

Referenced by getNbDigits(), and sequenceParser::detail::FileNumbers::SortByDigit::operator()().

Here is the call graph for this function:

static std::size_t sequenceParser::detail::FileNumbers::extractPadding ( const std::string &  str) [inline, static]

Definition at line 71 of file FileNumbers.hpp.

References hasSign().

Referenced by getPadding(), and sequenceParser::detail::FileNumbers::SortByPadding::operator()().

Here is the call graph for this function:

std::size_t sequenceParser::detail::FileNumbers::getNbDigits ( const std::size_t &  i) const [inline]

Definition at line 84 of file FileNumbers.hpp.

References _numbers, and extractNbDigits().

Here is the call graph for this function:

std::size_t sequenceParser::detail::FileNumbers::getPadding ( const std::size_t &  i) const [inline]

Definition at line 89 of file FileNumbers.hpp.

References _numbers, and extractPadding().

Here is the call graph for this function:

const std::string& sequenceParser::detail::FileNumbers::getString ( const std::size_t &  i) const [inline]

Definition at line 63 of file FileNumbers.hpp.

References _numbers.

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

Time sequenceParser::detail::FileNumbers::getTime ( const std::size_t &  i) const [inline]

Definition at line 94 of file FileNumbers.hpp.

References _numbers.

static bool sequenceParser::detail::FileNumbers::hasSign ( const std::string &  s) [inline, static]

Definition at line 69 of file FileNumbers.hpp.

Referenced by extractNbDigits(), and extractPadding().

bool sequenceParser::detail::FileNumbers::operator< ( const This v) const [inline]

Definition at line 117 of file FileNumbers.hpp.

void sequenceParser::detail::FileNumbers::push_back ( const std::string &  s) [inline]

Definition at line 41 of file FileNumbers.hpp.

References _numbers.

bool sequenceParser::detail::FileNumbers::rangeEquals ( const This v,
const size_t  begin,
const size_t  end 
) const [inline]

Definition at line 123 of file FileNumbers.hpp.

References _numbers.

std::size_t sequenceParser::detail::FileNumbers::size ( ) const [inline]

Definition at line 99 of file FileNumbers.hpp.

References _numbers.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const This p 
) [friend]

Definition at line 66 of file FileNumbers.cpp.


Field Documentation


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