15 lines
374 B
C++
15 lines
374 B
C++
|
//
|
||
|
// Created by trotfunky on 14/05/19.
|
||
|
//
|
||
|
|
||
|
#include "Circle.h"
|
||
|
|
||
|
namespace xmlParser
|
||
|
{
|
||
|
Circle::Circle() : x(0), y(1), r(2), label("Test circle")
|
||
|
{}
|
||
|
|
||
|
Circle::Circle(pugi::xml_node& node) : x(node.attribute("x").as_int(0)), y(node.attribute("y").as_int(1)),
|
||
|
r(node.attribute("r").as_int(2)), label(node.attribute("label").as_string("Test circle"))
|
||
|
{}
|
||
|
}
|