source: src/Actions/CommandAction/BondLengthTableAction.def@ 775f3f

Adding_MD_integration_tests Adding_StructOpt_integration_tests AutomationFragmentation_failures Candidate_v1.6.1 ChemicalSpaceEvaluator Enhanced_StructuralOptimization Enhanced_StructuralOptimization_continued Exclude_Hydrogens_annealWithBondGraph ForceAnnealing_with_BondGraph ForceAnnealing_with_BondGraph_contraction-expansion Gui_displays_atomic_force_velocity JobMarket_RobustOnKillsSegFaults JobMarket_StableWorkerPool PythonUI_with_named_parameters StoppableMakroAction TremoloParser_IncreasedPrecision
Last change on this file since 775f3f was 95cfac, checked in by Frederik Heber <heber@…>, 11 years ago

Added FileSuffixValidator to all Actions where missing but appropriate.

  • also clean up some unnecessary includes.
  • Property mode set to 100644
File size: 1.4 KB
RevLine 
[1fd675]1/*
2 * BondLengthTableAction.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
[632508]10#include "Graph/BondGraph.hpp"
[1fd675]11
[95cfac]12#include "Parameters/Validators/Ops_Validator.hpp"
[23958d]13#include "Parameters/Validators/Specific/FilePresentValidator.hpp"
[95cfac]14#include "Parameters/Validators/Specific/FileSuffixValidator.hpp"
[649aaa]15
[1fd675]16// i.e. there is an integer with variable name Z that can be found in
17// ValueStorage by the token "Z" -> first column: int, Z, "Z"
[6ba9ba]18// "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
[e4afb4]19#define paramtypes (boost::filesystem::path)
[d57341]20#define paramtokens ("bond-table")
[e4afb4]21#define paramdescriptions ("name of the bond length table file")
22#undef paramdefaults
[1fd675]23#define paramreferences (BondGraphFileName)
[23958d]24#define paramvalids \
[95cfac]25(FilePresentValidator() && (FileSuffixValidator("dat") || FileSuffixValidator("db")))
[1fd675]26
[b1ac7a]27#define statetypes (std::string)
28#define statereferences (undostring)
[1fd675]29
30// some defines for all the names, you may use ACTION, STATE and PARAMS
31#define CATEGORY Command
[052bfd8]32#define MENUNAME "command"
33#define MENUPOSITION 1
[1fd675]34#define ACTIONNAME BondLengthTable
35#define TOKEN "bond-table"
36
[24fbf3]37
38// finally the information stored in the ActionTrait specialization
[e4afb4]39#define DESCRIPTION "specifying a table file with specific bond lengths to use in bond structure analysis"
[24fbf3]40#define SHORTFORM "g"
Note: See TracBrowser for help on using the repository browser.