Rev | Line | |
---|
[1486] | 1 | #include "PreprocessorFactory.h"
|
---|
| 2 | #include "SamplingPreprocessor.h"
|
---|
| 3 | #include "VssPreprocessor.h"
|
---|
| 4 | #include "RssPreprocessor.h"
|
---|
| 5 | #include "ExactPreprocessor.h"
|
---|
| 6 | #include "RenderSampler.h"
|
---|
| 7 | #include "GvsPreprocessor.h"
|
---|
[1891] | 8 | #include "CombinedPreprocessor.h"
|
---|
[1486] | 9 |
|
---|
| 10 |
|
---|
| 11 | namespace GtpVisibilityPreprocessor {
|
---|
| 12 |
|
---|
| 13 |
|
---|
| 14 | Preprocessor *PreprocessorFactory::CreatePreprocessor(const string &preprocessorType)
|
---|
| 15 | {
|
---|
| 16 | if (preprocessorType == "vss")
|
---|
[2124] | 17 | {
|
---|
[1486] | 18 | return new VssPreprocessor();
|
---|
| 19 | }
|
---|
[1891] | 20 |
|
---|
| 21 | if (preprocessorType == "combined")
|
---|
| 22 | {
|
---|
| 23 | return new CombinedPreprocessor();
|
---|
| 24 | }
|
---|
| 25 |
|
---|
[1486] | 26 | if (preprocessorType == "rss")
|
---|
| 27 | {
|
---|
| 28 | return new RssPreprocessor();
|
---|
| 29 | }
|
---|
| 30 |
|
---|
| 31 | if (preprocessorType == "exact")
|
---|
| 32 | {
|
---|
| 33 | return new ExactPreprocessor();
|
---|
| 34 | }
|
---|
| 35 |
|
---|
| 36 | if (preprocessorType == "sampling")
|
---|
| 37 | {
|
---|
| 38 | return new SamplingPreprocessor();
|
---|
| 39 | }
|
---|
| 40 |
|
---|
| 41 | if (preprocessorType == "render")
|
---|
| 42 | {
|
---|
| 43 | return new RenderSampler();
|
---|
| 44 | }
|
---|
| 45 |
|
---|
| 46 | if (preprocessorType == "gvs")
|
---|
| 47 | {
|
---|
| 48 | return new GvsPreprocessor();
|
---|
| 49 | }
|
---|
| 50 |
|
---|
[1942] | 51 |
|
---|
[1486] | 52 | return NULL;
|
---|
| 53 | }
|
---|
| 54 |
|
---|
| 55 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.