Panda3D
 All Classes Functions Variables Enumerations
factoryParam.h
00001 // Filename: factoryParam.h
00002 // Created by:  drose (08May00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #ifndef FACTORYPARAM_H
00016 #define FACTORYPARAM_H
00017 
00018 #include "pandabase.h"
00019 
00020 #include "typedReferenceCount.h"
00021 
00022 #include "pvector.h"
00023 
00024 ////////////////////////////////////////////////////////////////////
00025 //       Class : FactoryParam
00026 // Description : The base class of any number of specific pieces of
00027 //               parameter information that might be passed to a
00028 //               Factory's CreateFunc to control what kind of instance
00029 //               is created.  This class is empty and contains no
00030 //               data, but different kinds of factories may expect
00031 //               parameters of various types that derive from
00032 //               FactoryParam (and do contain data).
00033 ////////////////////////////////////////////////////////////////////
00034 class EXPCL_PANDA_PUTIL FactoryParam : public TypedReferenceCount {
00035 public:
00036   INLINE FactoryParam();
00037   INLINE FactoryParam(const FactoryParam &other);
00038   INLINE void operator = (const FactoryParam &other);
00039   INLINE ~FactoryParam();
00040 
00041 public:
00042   virtual TypeHandle get_type() const {
00043     return get_class_type();
00044   }
00045   virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
00046   static TypeHandle get_class_type() {
00047     return _type_handle;
00048   }
00049   static void init_type() {
00050     TypedReferenceCount::init_type();
00051     register_type(_type_handle, "FactoryParam",
00052                   TypedReferenceCount::get_class_type());
00053   }
00054 
00055 private:
00056   static TypeHandle _type_handle;
00057 };
00058 
00059 #include "factoryParam.I"
00060 
00061 #endif
00062 
 All Classes Functions Variables Enumerations