Show IPluginDescABC.h syntax highlighted
#ifndef __IPLUGINDESCABC_H__
#define __IPLUGINDESCABC_H__ 1
#include <string>
#include <sstream>
#include <osg/Referenced>
namespace osgDesigner
{
class IPluginDescABC : public osg::Referenced
{
public:
IPluginDescABC() : osg::Referenced() {}
protected:
virtual ~IPluginDescABC() {}
public:
virtual const char * getVersion() const = 0;
virtual const char * getAuthor() const = 0;
virtual const char * getDescription() const = 0;
virtual const char * getName() const = 0;
std::string getDesc()
{
std::stringstream ss;
ss << "Plugin Description :\n";
ss << " Name : " << getName() << "\n";
ss << " Author : " << getAuthor() << "\n";
ss << " Version : " << getVersion() << "\n";
ss << " Description : " << getDescription() << "\n";
return (ss.str());
}
};
}
#endif // ** __IPLUGINDESCABC_H__ ** //
See more files for this project here