When you call getName() for the same instance of MPublisher, the system returns the name of that instance, for example the string "myPublisher".
virtual const char* getClassName() const;