00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef WRITABLEPARAM_H
00016 #define WRITABLEPARAM_H
00017
00018 #include "pandabase.h"
00019
00020 #include "factoryParam.h"
00021 #include "datagram.h"
00022
00023 #include "pvector.h"
00024
00025
00026
00027
00028
00029
00030
00031
00032 class EXPCL_PANDA_PUTIL WritableParam : public FactoryParam {
00033 public:
00034 INLINE const Datagram &get_datagram();
00035
00036 private:
00037 const Datagram &_packet;
00038
00039 public:
00040 INLINE WritableParam(const Datagram &datagram);
00041 INLINE WritableParam(const WritableParam &other);
00042 INLINE ~WritableParam();
00043
00044 private:
00045
00046 INLINE void operator = (const WritableParam &other);
00047
00048 public:
00049 virtual TypeHandle get_type() const {
00050 return get_class_type();
00051 }
00052 virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
00053 static TypeHandle get_class_type() {
00054 return _type_handle;
00055 }
00056 static void init_type() {
00057 FactoryParam::init_type();
00058 register_type(_type_handle, "WritableParam",
00059 FactoryParam::get_class_type());
00060 }
00061
00062 private:
00063 static TypeHandle _type_handle;
00064 };
00065
00066 #include "writableParam.I"
00067
00068 #endif
00069