![]() |
Syntax for 'virtual void GetDescription'?
::rtm:: :ahh: :mad:
The WPILib documentation won't explain it well enough for me. It says: virtual void GetDescription (std::ostringstream &desc) const =0 I have no idea what the 'std::ostringstream &desc' and 'const =0' parts mean. Can someone explain? |
Re: Syntax for 'virtual void GetDescription'?
Some of my post was accidentally converted to an Emoji.
I MEANT 'std::ostringstream &desc' |
Re: Syntax for 'virtual void GetDescription'?
Which class is this method from?
|
Re: Syntax for 'virtual void GetDescription'?
Quote:
GetDescription takes a reference to an ostringstream. const = 0 means that the method is pure virtual (ie, it must be implemented in subclasses). So, you are trying to do something with an interface, not the implementation. |
Re: Syntax for 'virtual void GetDescription'?
Code:
virtual void GetDescription (std::ostringstream &desc) const =0Code:
virtualCode:
voidCode:
GetDescriptionCode:
(std::ostringstream &desc)Code:
constCode:
=0 |
| All times are GMT -5. The time now is 10:01. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi