OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimNitfRpfTagFactory.cpp
Go to the documentation of this file.
1 //*******************************************************************
2 //
3 // LICENSE: LGPL see top level LICENSE.txt
4 //
5 // Author: Garrett Potts
6 //
7 // Description: Nitf support class
8 //
9 //********************************************************************
10 // $Id: ossimNitfRpfTagFactory.cpp 22875 2014-08-27 13:52:03Z dburken $
13 #include <ossim/base/ossimNotify.h>
14 #include <ossim/base/ossimTrace.h>
15 
16 RTTI_DEF1(ossimNitfRpfTagFactory, "ossimNitfRpfTagFactory", ossimNitfTagFactory);
17 
18 static const ossimString REGISTERED_RPF_HEADER_TAG = "RPFHDR";
19 static const ossimString REGISTERED_RPF_DES_TAG = "RPFDES";
20 
21 static ossimTrace traceDebug = ossimTrace("ossimNitfRpfTagFactory:debug");
22 
24 {
25 }
26 
28 {
29 }
30 
32 {
33  static ossimNitfRpfTagFactory inst;
34  return &inst;
35 }
36 
38 {
39  ossimString temp(ossimString(tagName).trim().upcase());
40 
41  if(temp == REGISTERED_RPF_HEADER_TAG)
42  {
43  return new ossimRpfHeader;
44  }
45  if(temp == REGISTERED_RPF_DES_TAG)
46  {
47  if(traceDebug())
48  {
49  ossimNotify(ossimNotifyLevel_WARN) << "WARNING ossimNitfRpfTagFactory::create: Reader for REGISTERED_RPF_DES_TAG not implemented yet" << std::endl;
50  }
51  }
52 
53  return 0;
54 }
static ossimNitfRpfTagFactory * instance()
RTTI_DEF1(ossimNitfRpfTagFactory, "ossimNitfRpfTagFactory", ossimNitfTagFactory)
virtual ossimRefPtr< ossimNitfRegisteredTag > create(const ossimString &tagName) const
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)