15 #ifndef CLIENTDEVICE_H 16 #define CLIENTDEVICE_H 18 #include "pandabase.h" 20 #include "typedReferenceCount.h" 23 #include <ipc_mutex.h> 38 const string &device_name);
45 INLINE
const string &get_device_name()
const;
47 INLINE
bool is_connected()
const;
51 INLINE
void acquire();
54 virtual void output(ostream &out)
const;
55 virtual void write(ostream &out,
int indent_level = 0)
const;
71 static void init_type() {
72 TypedReferenceCount::init_type();
73 register_type(_type_handle,
"ClientDevice",
74 TypedReferenceCount::get_class_type());
77 return get_class_type();
79 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
87 INLINE ostream &operator <<(ostream &out,
const ClientDevice &device) {
92 #include "clientDevice.I" A base class for things which need to inherit from both TypedObject and from ReferenceCount.
An abstract base class for a family of client device interfaces–including trackers, buttons, dials, and other analog inputs.
TypeHandle is the identifier used to differentiate C++ class types.
Any of a number of different devices that might be attached to a ClientBase, including trackers...