/*
 * SaveSelectedAtomsAsExtTypesAction.def
 *
 *  Created on: Apr 4, 2012
 *      Author: heber
 */

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

#include "Parameters/Validators/Specific/FileSuffixValidator.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 (NODEFAULT) for each (undefined) default value
#define paramtypes (unsigned int)(boost::filesystem::path)
#define paramtokens ("save-selected-atoms-as-exttypes")("filename")
#define paramdescriptions ("Type id for this selection of atoms")("path to tremolo's .exttypes file to which we append")
#undef paramdefaults
#define paramreferences (id)(filename)
#define paramvalids \
(DummyValidator< unsigned int >()) \
(FileSuffixValidator("exttypes"))

#undef statetypes
#undef statereferences

// some defines for all the names, you may use ACTION, STATE and PARAMS
#define CATEGORY Parser
#define MENUNAME "parser"
#define MENUPOSITION 12
#define ACTIONNAME SaveSelectedAtomsAsExtTypes
#define TOKEN "save-selected-atoms-as-exttypes"


// finally the information stored in the ActionTrait specialization
#define DESCRIPTION "saves the atomic Ids of all currently selected atoms in a exttypes file with the given id"
#undef SHORTFORM
