Candidate_v1.7.0
        stable
      
      
        
          | 
            Last change
 on this file since a93896 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
           | 
        
      
      
| Rev | Line |   | 
|---|
| [1fd675] | 1 | /*
 | 
|---|
| [072f0e] | 2 |  * OutputAsAction.def
 | 
|---|
| [1fd675] | 3 |  *
 | 
|---|
 | 4 |  *  Created on: Aug 26, 2010
 | 
|---|
 | 5 |  *      Author: heber
 | 
|---|
 | 6 |  */
 | 
|---|
 | 7 | 
 | 
|---|
 | 8 | // all includes and forward declarations necessary for non-integral types below
 | 
|---|
| [fc5c3a] | 9 | #
 | 
|---|
| [1fd675] | 10 | 
 | 
|---|
| [889067e] | 11 | #include "Parameters/Validators/DummyValidator.hpp"
 | 
|---|
| [23958d] | 12 | #include "Parameters/Validators/Ops_Validator.hpp"
 | 
|---|
 | 13 | #include "Parameters/Validators/Specific/ParserFileValidator.hpp"
 | 
|---|
| [649aaa] | 14 | 
 | 
|---|
| [1fd675] | 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"
 | 
|---|
| [6ba9ba] | 17 | // "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
 | 
|---|
| [889067e] | 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)
 | 
|---|
| [23958d] | 23 | #define paramvalids \
 | 
|---|
| [889067e] | 24 | (ParserFileValidator()) \
 | 
|---|
 | 25 | (DummyValidator<bool>())
 | 
|---|
| [1fd675] | 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
 | 
|---|
| [052bfd8] | 32 | #define MENUNAME "world"
 | 
|---|
 | 33 | #define MENUPOSITION 7
 | 
|---|
| [072f0e] | 34 | #define ACTIONNAME OutputAs
 | 
|---|
 | 35 | #define TOKEN "output-as"
 | 
|---|
| [1fd675] | 36 | 
 | 
|---|
| [24fbf3] | 37 | 
 | 
|---|
 | 38 | // finally the information stored in the ActionTrait specialization
 | 
|---|
| [fc5c3a] | 39 | #define DESCRIPTION "write all atoms to given file"
 | 
|---|
| [e4afb4] | 40 | #undef SHORTFORM
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.