| [987145] | 1 | /* | 
|---|
|  | 2 | * GeometryInputToVectorAction.cpp | 
|---|
|  | 3 | * | 
|---|
|  | 4 | *  Created on: Mar 28, 2017 | 
|---|
|  | 5 | *      Author: heber | 
|---|
|  | 6 | */ | 
|---|
|  | 7 |  | 
|---|
|  | 8 | // all includes and forward declarations necessary for non-integral types below | 
|---|
|  | 9 | #include "Parameters/Validators/Specific/GeometryNameValidator.hpp" | 
|---|
|  | 10 | #include "Parameters/Validators/DummyValidator.hpp" | 
|---|
|  | 11 |  | 
|---|
|  | 12 | // i.e. there is an integer with variable name Z that can be found in | 
|---|
|  | 13 | // ValueStorage by the token "Z" -> first column: int, Z, "Z" | 
|---|
|  | 14 | // "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value | 
|---|
|  | 15 | //#define paramtypes (const element *)(BoxVector) TODO: use a validator | 
|---|
|  | 16 | #define paramtypes (std::string)(Vector) | 
|---|
|  | 17 | #define paramtokens ("input-to-vector")("coordinates") | 
|---|
|  | 18 | #define paramdescriptions ("name for geometry object for reference as vector")("vector coordinates") | 
|---|
|  | 19 | #define paramreferences (name)(vec) | 
|---|
|  | 20 | #define paramdefaults (NOPARAM_DEFAULT())(NOPARAM_DEFAULT()) | 
|---|
|  | 21 | #define paramvalids \ | 
|---|
|  | 22 | (GeometryNameValidator()) \ | 
|---|
|  | 23 | (DummyValidator<Vector>()) | 
|---|
|  | 24 |  | 
|---|
|  | 25 | #undef statetypes | 
|---|
|  | 26 | #undef statereferences | 
|---|
|  | 27 |  | 
|---|
|  | 28 | // some defines for all the names, you may use ACTION, STATE and PARAMS | 
|---|
|  | 29 | #define CATEGORY Geometry | 
|---|
|  | 30 | #define MENUNAME "geometry" | 
|---|
|  | 31 | #define MENUPOSITION 1 | 
|---|
|  | 32 | #define ACTIONNAME InputToVector | 
|---|
|  | 33 | #define TOKEN "input-to-vector" | 
|---|
|  | 34 |  | 
|---|
|  | 35 | // finally the information stored in the ActionTrait specialization | 
|---|
|  | 36 | #define DESCRIPTION "stores the given vector as a named geometry object" | 
|---|
|  | 37 | #undef SHORTFORM | 
|---|