26 const std::string &device_name) :
29 _device_type(device_type)
64 _client->disconnect_device(_device_type,
get_name(),
this);
66 nassertv(disconnected);
88 out << get_type() <<
" " <<
get_name();
95 write(std::ostream &out,
int indent_level)
const {
96 indent(out, indent_level) << *
this <<
"\n";
virtual void do_poll() final
Causes the connected ClientBase to poll all of its clients, if necessary.
void disconnect()
Disconnects the ClientDevice from its ClientBase object.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
virtual ~ClientDevice()
We don't actually call disconnect() at the ClientDevice level destructor, because by the time we get ...
virtual void output(std::ostream &out) const
Writes a one-line string describing the device.
void ref() const
Explicitly increments the reference count.
An abstract base class for a family of client device interfaces–including trackers,...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
bool poll()
Initiates a poll of the client devices, if we are not forked and if we have not already polled this f...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
void unref_delete(RefCountType *ptr)
This global helper function will unref the given ReferenceCount object, and if the reference count re...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.