IteratorsExamples.cxxΒΆ
Example source code (IteratorsExamples.cxx):
// this file defines the Iterator Examples for the test driver
// and all it expects is that you have a function called RegisterTests
#include <iostream>
#include "otbTestMain.h"
void RegisterTests()
{
REGISTER_TEST(ImageLinearIteratorWithIndexTest);
REGISTER_TEST(ImageRandomConstIteratorWithIndexTest);
REGISTER_TEST(ImageSliceIteratorWithIndexTest);
}
#undef main
#define main ImageLinearIteratorWithIndexTest
#include "ImageLinearIteratorWithIndex.cxx"
#undef main
#define main ImageRandomConstIteratorWithIndexTest
#include "ImageRandomConstIteratorWithIndex.cxx"
#undef main
#define main ImageSliceIteratorWithIndexTest
#include "ImageSliceIteratorWithIndex.cxx"