| 1 | /*
 | 
|---|
| 2 |  * GeometryPositionToVectorAction.cpp
 | 
|---|
| 3 |  *
 | 
|---|
| 4 |  *  Created on: Mar 27, 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 | 
 | 
|---|
| 11 | // i.e. there is an integer with variable name Z that can be found in
 | 
|---|
| 12 | // ValueStorage by the token "Z" -> first column: int, Z, "Z"
 | 
|---|
| 13 | // "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
 | 
|---|
| 14 | //#define paramtypes (const element *)(BoxVector) TODO: use a validator
 | 
|---|
| 15 | #define paramtypes (std::string)
 | 
|---|
| 16 | #define paramtokens ("position-to-vector")
 | 
|---|
| 17 | #define paramdescriptions ("name for geometry object for reference as vector") 
 | 
|---|
| 18 | #define paramreferences (name)
 | 
|---|
| 19 | #define paramdefaults (NOPARAM_DEFAULT())
 | 
|---|
| 20 | #define paramvalids \
 | 
|---|
| 21 | (GeometryNameValidator())
 | 
|---|
| 22 | 
 | 
|---|
| 23 | #define statetypes (Vector)
 | 
|---|
| 24 | #define statereferences (position)
 | 
|---|
| 25 | 
 | 
|---|
| 26 | // some defines for all the names, you may use ACTION, STATE and PARAMS
 | 
|---|
| 27 | #define CATEGORY Geometry
 | 
|---|
| 28 | #define MENUNAME "geometry"
 | 
|---|
| 29 | #define MENUPOSITION 1
 | 
|---|
| 30 | #define ACTIONNAME PositionToVector
 | 
|---|
| 31 | #define TOKEN "position-to-vector"
 | 
|---|
| 32 | 
 | 
|---|
| 33 | // finally the information stored in the ActionTrait specialization
 | 
|---|
| 34 | #define DESCRIPTION "stores the position of the selected atom as a named geometry object"
 | 
|---|
| 35 | #undef SHORTFORM
 | 
|---|