32 #include "base/common/ossimCommon.h" 33 #include "base/data_types/ossimFilename.h" 34 #include "base/data_types/ossimKeywordlist.h" 35 #include "base/factory/ossimObjectFactoryRegistry.h" 45 int main(
int argc,
char* argv[])
49 cout <<
"_______________________________DEMO 1__________________________\n";
52 cout <<
"_______________________________DEMO 2__________________________\n";
55 cout <<
"_______________________________DEMO 3__________________________\n";
82 cout <<
"------------------ object 1 = " << obj1->
getClassName() <<
" keyword list is -----------------" << endl;
86 cout <<
"------------------ object 1 = " << obj1->
getClassName() <<
" keyword list with prefix -----------------" << endl;
93 cout <<
"This shouldn't happen" << endl;
113 << obj2->
getClassName() <<
" saved to the same keywordlist." 120 cout <<
"This shouldn't happen" << endl;
152 cout <<
"____________________ The Original object " << obj->
getClassName() <<
" ___________________" << endl;
154 cout <<
"____________________ The New object " << objNew->
getClassName() <<
" ___________________" << endl;
155 cout << kwl2 << endl;
161 cout <<
"ERROR: This shouldn't happen" << endl;
173 cout <<
"____________________ The Original object " << proj->
getClassName() <<
" ___________________" << endl;
175 cout <<
"____________________ The New object " << objNew->
getClassName() <<
" ___________________" << endl;
176 cout << kwl2 << endl;
182 cout <<
"ERROR: This shouldn't happen" << endl;
190 cout <<
"This shouldn't happen" << endl;
void initialize(int &argc, char **argv)
Represents serializable keyword/value map.
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
static ossimObjectFactoryRegistry * instance()
virtual ossimString getClassName() const
ossimObject * createObject(const ossimString &objectType)
int main(int argc, char *argv[])
virtual ossimObject * createObject(const ossimString &name) const
static ossimInit * instance()