| Line | Branch | Decision | Call | Exec | Source |
|---|---|---|---|---|---|
| 1 | #ifndef CHRYSALIS_SEGMENTARGUMENT_H | ||||
| 2 | #define CHRYSALIS_SEGMENTARGUMENT_H | ||||
| 3 | |||||
| 4 | #include "arguments/VectorArgument.h" | ||||
| 5 | #include "arguments/PatternPointArgument.h" | ||||
| 6 | |||||
| 7 | /** @defgroup Arguments Arguments | ||||
| 8 | * @{ | ||||
| 9 | */ | ||||
| 10 | namespace Chrysalis { | ||||
| 11 | class SegmentArgument: public VectorArgument { | ||||
| 12 | PROVIDE_SERIALIZATION_ACCESS(SegmentArgument) | ||||
| 13 | public: | ||||
| 14 | explicit SegmentArgument(const args::point* origin, const args::point* destination); | ||||
| 15 | ~SegmentArgument() override; | ||||
| 16 | |||||
| 17 | const args::point* destination() const; | ||||
| 18 | |||||
| 19 | explicit operator CG::Segment() const override; | ||||
| 20 | private: | ||||
| 21 | /// @uml{composition} | ||||
| 22 | const args::point* destination_; | ||||
| 23 | }; | ||||
| 24 | 460 | SERIALIZE_DERIVED_CONSTRUCTION(SegmentArgument, VectorArgument, origin_, destination_) | |||
| 25 | namespace args { | ||||
| 26 | using segment = SegmentArgument; | ||||
| 27 | } | ||||
| 28 | } | ||||
| 29 | /**@}*/ | ||||
| 30 | |||||
| 31 | #endif //CHRYSALIS_SEGMENTARGUMENT_H | ||||
| 32 |