/*
 * AddSelectedAtomsAsFragmentAction.def
 *
 *  Created on: Nov 20, 2025
 *      Author: heber
 */

// all includes and forward declarations necessary for non-integral types below
#include <boost/assign.hpp> 
#include <string>
#include <vector>

#include "Parameters/Validators/DummyValidator.hpp"
#include "Parameters/Validators/RangeValidator.hpp"
#include "Parameters/Validators/STLVectorValidator.hpp"
#include "Parameters/Validators/Specific/BoxLengthValidator.hpp"
#include "Parameters/Validators/Specific/ParserTypeValidator.hpp"

// i.e. there is an integer with variable name Z that can be found in
// ValueStorage by the token "Z" -> first column: int, Z, "Z"
// "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
#define paramtypes (std::string)(std::vector<std::string>)(double)(unsigned int)
#define paramtokens ("add-selected-atoms-as-fragment")("output-types")("max-meshwidth")("grid-level")
#define paramdescriptions ("prefix of each fragment file")("type(s) of parsers that output fragment config files")("maximum allowed mesh width, i.e. discrete points may be at most that far apart on the fragment grids")("resolution of density sampling multigrid")
#define paramdefaults (PARAM_DEFAULT("BondFragment"))(PARAM_DEFAULT(std::vector<std::string>()))(PARAM_DEFAULT(0.))(PARAM_DEFAULT(5))
#define paramreferences (prefix)(types)(max_meshwidth)(level)
#define paramvalids \
(DummyValidator< std::string >()) \
(STLVectorValidator< std::vector<std::string> >(0, 10, ParserTypeValidator())) \
(BoxLengthValidator()) \
(RangeValidator< unsigned int >(1, 10))

#undef statetypes
#undef statereferences

// some defines for all the names, you may use ACTION, STATE and PARAMS
#define CATEGORY Fragmentation
#define MENUNAME "fragmentation"
#define MENUPOSITION 9
#define ACTIONNAME AddSelectedAtomsAsFragment
#define TOKEN "add-selected-atoms-as-fragment"

// finally the information stored in the ActionTrait specialization
#define DESCRIPTION "This adds all currently selected atoms as one single fragment to the job queue"
#undef SHORTFORM
