#include <PageSet.h>
Public Types | |
enum | Filter { e_all, e_even, e_odd } |
Public Member Functions | |
PageSet () | |
PageSet (int one_page) | |
PageSet (int range_start, int range_end, Filter filter=e_all) | |
~PageSet () | |
void | AddPage (int one_page) |
void | AddRange (int range_start, int range_end, Filter filter=e_all) |
void | Destroy () |
PageSet is a container of page numbers ordered following a linear sequence. The page numbers are integers and must be greater than zero. Duplicates are allowed.
(NOTE: This is not a mathematical set)
pdftron::PDF::PageSet::PageSet | ( | ) |
Default constructor. Constructs 'PageSet' with no pages
pdftron::PDF::PageSet::PageSet | ( | int | one_page | ) |
Construct a set of pages with just one number
Construct a range of pages
pdftron::PDF::PageSet::~PageSet | ( | ) |
Destructor
void pdftron::PDF::PageSet::AddPage | ( | int | one_page | ) |
Add a value to the sequence.
one_page | The page number being added |
Add a range of values to the sequence. Reverse ordering is legal.
range_start | The starting value in the range |
range_end | The ending value in the range |
filter | -e_all: Default, includes all pages in the range -e_odd: Includes odd numbers in the range (discards even numbers) -e_even: Includes even numbers in the range (discards odd numbers) |
void pdftron::PDF::PageSet::Destroy | ( | ) |
Frees the native memory of the object.