Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

generic_context.cpp

Go to the documentation of this file.
00001 // See license.txt for license information.
00002 //
00003 // xmlobj_context.cpp
00004 //
00005 // 7-Jul-2003  phamilton  Created
00006 //
00007 
00008 #include "generic_context.hpp"
00009 #include "generic.hpp"
00010 
00011 using namespace ph::xmlobj::generic;
00012 
00013 ph::common::object_base *generic_context::create(const std::string &type, const std::string &name)
00014 {
00015         // try to create the object the normal way, and if we can't just create
00016         // a completely new generic one.
00017         ph::common::object_base *obj = xmlobj_context::create(type, name);
00018         if (obj)
00019                 return obj;
00020         return new generic(type, name);
00021 }

Generated on Wed Apr 5 22:03:24 2006 for cppxmlobj by  doxygen 1.4.3