35 #ifndef IE_CORE_FILESEQUENCE_H
36 #define IE_CORE_FILESEQUENCE_H
41 #include "boost/format.hpp"
42 #include "boost/regex.hpp"
44 #include "IECore/Export.h"
45 #include "IECore/RunTimeTyped.h"
46 #include "IECore/FrameList.h"
51 IE_CORE_FORWARDDECLARE( FileSequence );
65 FileSequence(
const std::string &fileName, FrameListPtr frameList );
74 const std::string &getFileName()
const;
75 void setFileName(
const std::string &fileName );
78 void setFrameList( FrameListPtr frameList );
80 std::string asString()
const;
84 unsigned getPadding()
const;
88 void setPadding(
unsigned padding );
91 std::string getPrefix()
const;
94 void setPrefix(
const std::string &prefix );
97 std::string getSuffix()
const;
100 void setSuffix(
const std::string &suffix );
104 std::string fileNameForFrame( FrameList::Frame frameNumber )
const;
107 FrameList::Frame frameForFileName(
const std::string &fileName )
const;
111 void fileNames( std::vector< std::string > &f )
const;
115 void clumpedFileNames(
unsigned clumpSize, std::vector< std::vector < std::string > > &f )
const;
118 FileSequencePtr copy()
const;
120 void mapTo(
const FileSequence *other, std::vector< std::pair< std::string, std::string > > &result )
const;
122 void mapTo(
const FileSequence *other, std::map< std::string, std::string > &result )
const;
126 static boost::regex fileNameValidator();
132 std::string m_fileName;
133 FrameListPtr m_frameList;
137 boost::format fileNameTemplate(
bool negativeFrame )
const;
144 #endif // IE_CORE_FILESEQUENCE_H
Definition: FileSequence.h:56
Definition: RunTimeTyped.h:211
This namespace contains all components of the core library.
Definition: AddSmoothSkinningInfluencesOp.h:43
Definition: FrameList.h:52