Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/MoleculeAction/BondFileAction.def

    r0cbad2 r6ba9ba  
    99class MoleculeListClass;
    1010
     11#include "Parameters/Validators/DummyValidator.hpp"
     12#include "Parameters/Validators/Specific/FilePresentValidator.hpp"
     13
    1114// i.e. there is an integer with variable name Z that can be found in
    1215// ValueStorage by the token "Z" -> first column: int, Z, "Z"
    13 // "undefine" if no parameters are required, use (NODEFAULT) for each (undefined) default value
    14 #define paramtypes (boost::filesystem::path)(int)(int)
     16// "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
     17#define paramtypes (boost::filesystem::path)(unsigned int)(unsigned int)
    1518#define paramtokens ("bond-file")("skiplines")("offset")
    1619#define paramdescriptions ("name of the bond file")("number of header lines to skip")("offset to add to each id")
    17 #define paramdefaults (NODEFAULT)("1")("0")
     20#define paramdefaults (NOPARAM_DEFAULT)(PARAM_DEFAULT(1))(PARAM_DEFAULT(0))
    1821#define paramreferences (bondfile)(skiplines)(id_offset)
     22#define paramvalids \
     23(FilePresentValidator()) \
     24(DummyValidator< unsigned int >()) \
     25(DummyValidator< unsigned int >())
    1926
    2027#undef statetypes
Note: See TracChangeset for help on using the changeset viewer.