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