Source

cpp-sandbox / src / object.h

#ifndef _SVG_OBJECT_H
#define _SVG_OBJECT_H
#include <string>

namespace svg {

	class Object {
		const std::string _id;
		Object(const Object &);

	public:
		Object() : _id("") {}
		Object(std::string id) : _id(id) {}
		virtual ~Object() {}

		inline std::string get_id() const
		{
			return _id;
		}

		virtual void write_svg(std::ostream &stream) const;
	};

}

#endif