| Line |
Branch |
Decision |
Call |
Exec |
Source |
| 1 |
|
|
|
|
#ifndef CHRYSALIS_STARTOUTLINEINSTRUCTION_H |
| 2 |
|
|
|
|
#define CHRYSALIS_STARTOUTLINEINSTRUCTION_H |
| 3 |
|
|
|
|
|
| 4 |
|
|
|
|
#include <boost/serialization/export.hpp> |
| 5 |
|
|
|
|
|
| 6 |
|
|
|
|
#include "arguments/Argument.h" |
| 7 |
|
|
|
|
#include "arguments/OptionalArgument.h" |
| 8 |
|
|
|
|
#include "arguments/PatternsContainerArgument.h" |
| 9 |
|
|
|
|
#include "BasePatternInstruction.h" |
| 10 |
|
|
|
|
#include "BuildOutlineInstruction.h" |
| 11 |
|
|
|
|
#include "arguments/PatternPointArgument.h" |
| 12 |
|
|
|
|
|
| 13 |
|
|
|
|
/** @defgroup Instructions Instructions |
| 14 |
|
|
|
|
* @{ |
| 15 |
|
|
|
|
*/ |
| 16 |
|
|
|
|
namespace Chrysalis { |
| 17 |
|
|
|
|
/** |
| 18 |
|
|
|
|
* @uml{note[top] Syntax samples: |
| 19 |
|
|
|
|
* out -> A -> B -> C // (3 instructions) |
| 20 |
|
|
|
|
* out("Name") -> A -> B -> C |
| 21 |
|
|
|
|
* } |
| 22 |
|
|
|
|
*/ |
| 23 |
|
|
|
|
class BuildOutlineInstruction: public BasePatternInstruction { |
| 24 |
|
|
|
|
PROVIDE_SERIALIZATION_ACCESS(BuildOutlineInstruction) |
| 25 |
|
|
|
|
public: |
| 26 |
|
|
|
|
explicit BuildOutlineInstruction(ProjectSpace* space, args::patterns* selectedPatterns, |
| 27 |
|
|
|
|
args::name&& outlineName, const args::container<const PatternPointArgument>* points); |
| 28 |
|
|
|
|
~BuildOutlineInstruction() override; |
| 29 |
|
|
|
|
|
| 30 |
|
|
|
|
void execute() override; |
| 31 |
|
|
|
|
private: |
| 32 |
|
|
|
|
args::name outlineName_; |
| 33 |
|
|
|
|
const args::container<const PatternPointArgument>* points_; |
| 34 |
|
|
|
|
}; |
| 35 |
5/12
✓ Branch 6 taken 4 times.
✗ Branch 7 not taken.
✓ Branch 10 taken 4 times.
✗ Branch 11 not taken.
✓ Branch 14 taken 4 times.
✗ Branch 15 not taken.
✓ Branch 18 taken 4 times.
✗ Branch 19 not taken.
✓ Branch 31 taken 4 times.
✗ Branch 32 not taken.
✗ Branch 34 not taken.
✗ Branch 35 not taken.
|
|
32/34
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 3 invoked.
✓ Call 4 invoked.
✓ Call 5 invoked.
✓ Call 6 invoked.
✓ Call 7 invoked.
✓ Call 8 invoked.
✓ Call 9 invoked.
✓ Call 10 invoked.
✓ Call 11 invoked.
✓ Call 12 invoked.
✓ Call 13 invoked.
✓ Call 14 invoked.
✓ Call 15 invoked.
✓ Call 16 invoked.
✓ Call 17 invoked.
✓ Call 18 invoked.
✓ Call 19 invoked.
✓ Call 20 invoked.
✓ Call 21 invoked.
✓ Call 22 invoked.
✓ Call 23 invoked.
✓ Call 24 invoked.
✓ Call 25 invoked.
✓ Call 26 invoked.
✓ Call 27 invoked.
✓ Call 28 invoked.
✓ Call 29 invoked.
✓ Call 30 invoked.
✓ Call 33 invoked.
✗ Call 36 not invoked.
✗ Call 37 not invoked.
|
40 |
SERIALIZE_DERIVED_CONSTRUCTION(BuildOutlineInstruction, BasePatternInstruction, space_, patterns_, outlineName_, points_) |
| 36 |
|
|
|
|
} |
| 37 |
|
|
|
|
/**@}*/ |
| 38 |
|
|
|
|
|
| 39 |
|
|
|
|
#endif //CHRYSALIS_STARTOUTLINEINSTRUCTION_H |
| 40 |
|
|
|
|
|