OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <iostream>
#include "base/common/ossimCommon.h"
#include "base/data_types/ossimFilename.h"
#include "base/data_types/ossimKeywordlist.h"
#include "base/factory/ossimObjectFactoryRegistry.h"
#include "init/ossimInit.h"
Go to the source code of this file.
Functions | |
ossimObject * | createObject (const ossimString &objectType) |
void | demo1 () |
void | demo2 () |
void | demo3 () |
int | main (int argc, char *argv[]) |
ossimObject * createObject | ( | const ossimString & | objectType | ) |
Definition at line 64 of file kwl.cpp.
References ossimObjectFactoryRegistry::createObject(), and ossimObjectFactoryRegistry::instance().
Referenced by demo1(), demo2(), demo3(), and ossimObjectFactoryRegistry::getTypeNameList().
void demo1 | ( | ) |
Demo1 will just instantiate and object of the passed in type and then execute a save state and print that keywordlist out.
Definition at line 73 of file kwl.cpp.
References ossimKeywordlist::clear(), createObject(), ossimObject::getClassName(), and ossimObject::saveState().
Referenced by main().
void demo2 | ( | ) |
Save 2 objects to a keywordlist without conflict in values. This will force us to use a prefix in order to save 2 objects to the same list
Definition at line 101 of file kwl.cpp.
References createObject(), ossimObject::getClassName(), and ossimObject::saveState().
Referenced by main().
void demo3 | ( | ) |
Save object to keywordlist and then pass keyword list to factory and instantitate an object from keywordlist. We will do it twice, the first time without a prefix and then the second time with a prefix.
We will use 2 object types: the first one will be a filter and the second one will be a projection.
Note: you should get identical outputs for both outputs.
Definition at line 136 of file kwl.cpp.
References ossimKeywordlist::clear(), ossimObjectFactoryRegistry::createObject(), createObject(), ossimObject::getClassName(), ossimObjectFactoryRegistry::instance(), and ossimObject::saveState().
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 45 of file kwl.cpp.
References demo1(), demo2(), demo3(), ossimInit::finalize(), ossimInit::initialize(), and ossimInit::instance().