I am working on this C++ project that uses an open source library that is not well documented, and I came across this code block:
IDataObserver* GetDataObserver()
{
return &mFDO;
}
and also this object creation:
ICommandAcceptor* mpCommandAcceptor;
I found out that IDataObserver is a class in this library. I have read of a pointer to a class and a pointer to a memory location and values. But what would I call this "IDataObserver* GetDataObserver()" ? Is it even a pointer? Does this mean that GetDataObserver() is an instance of that class or what? On the object creation, mpCommandAcceptor object was created from a class called "ICommandAcceptor" but what's up with the * sign? Thanks.