Describes a NumName sequence with a head and tail range. More...
#include <numnameseq.h>
Public Types | |
| using | List = promeki::List< NumNameSeq > |
| List of NumNameSeq values. | |
Public Member Functions | |
| NumNameSeq ()=default | |
| Default constructor. | |
| NumNameSeq (const NumName &n, size_t h, size_t t) | |
| Constructs a NumNameSeq with the given name, head, and tail. | |
| const NumName & | name () const |
| Returns the NumName for this sequence. | |
| bool | isValid () const |
| Returns true if the sequence is valid. | |
| size_t | length () const |
| Returns the number of entries in the sequence. | |
| size_t | head () const |
| Returns the head (first) index of the sequence. | |
| size_t | tail () const |
| Returns the tail (last) index of the sequence. | |
Static Public Member Functions | |
| static List | parseList (StringList &input) |
| Parses a list of NumNameSeq objects from the string list. | |
Describes a NumName sequence with a head and tail range.
Represents a named, numbered file sequence (e.g. "image.0001.exr" through "image.0100.exr") by storing the NumName pattern along with the first and last sequence indices.
Constructs a NumNameSeq with the given name, head, and tail.
| n | The NumName pattern for this sequence. |
| h | The head (first) index of the sequence. |
| t | The tail (last) index of the sequence. |
|
inline |
Returns the head (first) index of the sequence.
|
inline |
Returns true if the sequence is valid.
|
inline |
Returns the number of entries in the sequence.
|
static |
Parses a list of NumNameSeq objects from the string list.
Any objects that can't be num names will be left in the input list.
| input | The string list to parse; non-matching entries remain. |
|
inline |
Returns the tail (last) index of the sequence.