Candidate_v1.7.0
        stable
      
      
        
          | Last change
 on this file since e9f307 was             889067e, checked in by Frederik Heber <frederik.heber@…>, 4 years ago | 
        
          | 
Added force-overwrite to OutputAsAction.
 DOCU: Also added information to userguide.
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            1.3 KB | 
      
      
| Line |  | 
|---|
| 1 | /* | 
|---|
| 2 | * OutputAsAction.def | 
|---|
| 3 | * | 
|---|
| 4 | *  Created on: Aug 26, 2010 | 
|---|
| 5 | *      Author: heber | 
|---|
| 6 | */ | 
|---|
| 7 |  | 
|---|
| 8 | // all includes and forward declarations necessary for non-integral types below | 
|---|
| 9 | # | 
|---|
| 10 |  | 
|---|
| 11 | #include "Parameters/Validators/DummyValidator.hpp" | 
|---|
| 12 | #include "Parameters/Validators/Ops_Validator.hpp" | 
|---|
| 13 | #include "Parameters/Validators/Specific/ParserFileValidator.hpp" | 
|---|
| 14 |  | 
|---|
| 15 | // i.e. there is an integer with variable name Z that can be found in | 
|---|
| 16 | // ValueStorage by the token "Z" -> first column: int, Z, "Z" | 
|---|
| 17 | // "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value | 
|---|
| 18 | #define paramtypes (boost::filesystem::path)(bool) | 
|---|
| 19 | #define paramtokens ("output-as")("force-overwrite") | 
|---|
| 20 | #define paramdescriptions ("filename to write to")("overwrite file if already present") | 
|---|
| 21 | #define paramdefaults (NOPARAM_DEFAULT)(PARAM_DEFAULT(false)) | 
|---|
| 22 | #define paramreferences (filename)(forceOverwrite) | 
|---|
| 23 | #define paramvalids \ | 
|---|
| 24 | (ParserFileValidator()) \ | 
|---|
| 25 | (DummyValidator<bool>()) | 
|---|
| 26 |  | 
|---|
| 27 | #undef statetypes | 
|---|
| 28 | #undef statereferences | 
|---|
| 29 |  | 
|---|
| 30 | // some defines for all the names, you may use ACTION, STATE and PARAMS | 
|---|
| 31 | #define CATEGORY World | 
|---|
| 32 | #define MENUNAME "world" | 
|---|
| 33 | #define MENUPOSITION 7 | 
|---|
| 34 | #define ACTIONNAME OutputAs | 
|---|
| 35 | #define TOKEN "output-as" | 
|---|
| 36 |  | 
|---|
| 37 |  | 
|---|
| 38 | // finally the information stored in the ActionTrait specialization | 
|---|
| 39 | #define DESCRIPTION "write all atoms to given file" | 
|---|
| 40 | #undef SHORTFORM | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.