OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimGridRemapEngineFactory.cpp
Go to the documentation of this file.
1 //*****************************************************************************
2 // FILE: ossimGridRemapEngineFactory.cc
3 //
4 // Copyright (C) 2001 ImageLinks, Inc.
5 //
6 // License: LGPL
7 //
8 // See LICENSE.txt file in the top level directory for more details.
9 //
10 // AUTHOR: Oscar Kramer
11 //
12 // DESCRIPTION: Contains implementation of class ossimGridRemapEngineFactory
13 //
14 // LIMITATIONS: None.
15 //
16 //*****************************************************************************
17 // $Id: ossimGridRemapEngineFactory.cpp 9094 2006-06-13 19:12:40Z dburken $
18 
23 
24 //*****************************************************************************
25 // STATIC METHOD: ossimGridRemapEngineFactory::create()
26 //
27 //*****************************************************************************
29 {
30  if (!s)
31  return 0;
32 
33  if (strcmp(s, "ossimHsvGridRemapEngine") == 0)
34  return new ossimHsvGridRemapEngine;
35 
36  else if (strcmp(s, "ossimRgbGridRemapEngine") == 0)
37  return new ossimRgbGridRemapEngine;
38 
39  else if (strcmp(s, "ossimMonoGridRemapEngine") == 0)
40  return new ossimMonoGridRemapEngine;
41 
42  return 0;
43 }
44 
static ossimGridRemapEngine * create(const char *spec)