Ignore:
Timestamp:
Sep 30, 2016, 3:51:37 PM (9 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Fix_ParseParticles_split_forward_backward_Actions
Parents:
4d1aef
git-author:
Frederik Heber <heber@…> (09/27/16 14:37:40)
git-committer:
Frederik Heber <heber@…> (09/30/16 15:51:37)
Message:

tempcommit: Rewrote step-world-time into two actions.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • src/Actions/WorldAction/StepBackwardWorldTimeAction.def

    r4d1aef r0efd21  
    11/*
    2  * StepWorldTimeAction.def
     2 * StepBackwardWorldTimeAction.def
    33 *
    44 *  Created on: Sep 27, 2016
     
    88// all includes and backward declarations necessary for non-integral types below
    99
    10 
    11 #include "Parameters/Validators/DummyValidator.hpp"
     10#include <limits>
     11#include "Parameters/Validators/RangeValidator.hpp"
    1212
    1313// i.e. there is an integer with variable name Z that can be found in
    1414// ValueStorage by the token "Z" -> first column: int, Z, "Z"
    1515// "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
    16 #define paramtypes (int)
    17 #define paramtokens ("step-world-time")
    18 #define paramdescriptions ("how many steps to take forward or backward")
    19 #undef paramdefaults
    20 #define paramreferences (steps)
     16#define paramtypes (unsigned int)
     17#define paramtokens ("step-backward")
     18#define paramdescriptions ("how many steps to take backward")
     19#define paramdefaults (PARAM_DEFAULT(1))
     20#define paramreferences (steps_backward)
    2121#define paramvalids \
    22 (DummyValidator< int >())
     22(RangeValidator<unsigned int>(1, std::numeric_limits<unsigned int>::max()))
    2323
    2424#define statetypes (unsigned int)
     
    2828#define CATEGORY World
    2929#define MENUNAME "world"
    30 #define MENUPOSITION 12
    31 #define ACTIONNAME StepWorldTime
    32 #define TOKEN "step-world-time"
     30#define MENUPOSITION 13
     31#define ACTIONNAME StepBackwardWorldTime
     32#define TOKEN "step-backward"
    3333
    3434
    3535// finally the information stored in the ActionTrait specialization
    36 #define DESCRIPTION "step forward or backward a certain amount of steps in world time"
     36#define DESCRIPTION "step backward a certain amount of steps in world time"
    3737#undef SHORTFORM
Note: See TracChangeset for help on using the changeset viewer.