From b0b9b9401cf06859e99ce20b911014404bc08faf Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 18 Dec 2020 21:48:35 +0900 Subject: Renaming of files in preparation for code style tools. Signed-off-by: Michele Calgaro --- doc/sources/c++/polygon.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 doc/sources/c++/polygon.h (limited to 'doc/sources/c++/polygon.h') diff --git a/doc/sources/c++/polygon.h b/doc/sources/c++/polygon.h new file mode 100644 index 0000000..e3189bf --- /dev/null +++ b/doc/sources/c++/polygon.h @@ -0,0 +1,25 @@ +#ifndef POLYGON_HPP +#define POLYGON_HPP + +class polygon +{ + protected: + double side_length_; + + public: + polygon() : side_length_(0) + {} + + void set_side_length(double side_length) + { + side_length_ = side_length; + } + + virtual double area() const = 0; +}; + +// the types of the class factories +typedef polygon* create_t(); +typedef void destroy_t(polygon*); + +#endif -- cgit v1.2.3