V
victorcionca
Hi
I am trying to write a class using the ccRTP library. This class
inherits from a RTPSession class and overrides several methods, one of
them being onGotRR.
I would like to separate the class definition from the implementation
(h file and cpp file), but I cannot get it right.
I declare the class
namespace rtptest{
class Receiver: RTPSession {
....
void onGotRR(..);
};
}
and
when I implement:
namespace rtptest {
....
void onGotRR(...); ->error: method doesn't match with the one defined
in the upper class
....
}
If I implement it
namespace rtptest {
.....
void ccrtpnamespace::QueueRTCPManager:nGotRR(....)
.....
}
it fails because I woul need to use an object to call the method.
However, if I don't split the class -> use inline methods,
namespace rtptest{
class Receiver: RTPSession{
.....
void onGotRR(...){
......
}
......
};
}
everything works fine, no errors. Why is that? And I really would like
to have them separated.
I am trying to write a class using the ccRTP library. This class
inherits from a RTPSession class and overrides several methods, one of
them being onGotRR.
I would like to separate the class definition from the implementation
(h file and cpp file), but I cannot get it right.
I declare the class
namespace rtptest{
class Receiver: RTPSession {
....
void onGotRR(..);
};
}
and
when I implement:
namespace rtptest {
....
void onGotRR(...); ->error: method doesn't match with the one defined
in the upper class
....
}
If I implement it
namespace rtptest {
.....
void ccrtpnamespace::QueueRTCPManager:nGotRR(....)
.....
}
it fails because I woul need to use an object to call the method.
However, if I don't split the class -> use inline methods,
namespace rtptest{
class Receiver: RTPSession{
.....
void onGotRR(...){
......
}
......
};
}
everything works fine, no errors. Why is that? And I really would like
to have them separated.