Changes in src/Actions/MapOfActions.cpp [39af9f:8540f0]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/MapOfActions.cpp
r39af9f r8540f0 50 50 v = boost::any(BoxValue(BV)); 51 51 } 52 52 53 53 54 /** Constructor of class MapOfActions. … … 84 85 DescriptionMap["nonconvex-envelope"] = "create the non-convex envelope for a molecule"; 85 86 DescriptionMap["molecular-volume"] = "calculate the volume of a given molecule"; 86 DescriptionMap["pair-correlation"] = "pair correlation analysis between two elements, element and point or element and surface"; 87 DescriptionMap["pair-correlation"] = "pair correlation analysis between two elements"; 88 DescriptionMap["pair-correlation-point"] = "pair correlation analysis between atoms of a element to a given point"; 89 DescriptionMap["pair-correlation-surface"] = "pair correlation analysis between atoms of a given element and a surface"; 87 90 DescriptionMap["parse-xyz"] = "parse xyz file into World"; 88 91 DescriptionMap["principal-axis-system"] = "calculate the principal axis system of the specified molecule"; … … 110 113 DescriptionMap["distances"] = "list of three of distances in space, one for each axis direction"; 111 114 DescriptionMap["DoRotate"] = "whether to rotate or just report angles"; 112 DescriptionMap["element"] = "single element"; 113 DescriptionMap["elements"] = "set of elements"; 115 DescriptionMap["element"] = "set of elements"; 114 116 DescriptionMap["end-mol"] = "last or end step"; 115 117 DescriptionMap["input"] = "name of input file"; … … 118 120 DescriptionMap["MaxDistance"] = "maximum distance in space"; 119 121 DescriptionMap["molecule-by-id"] = "index of a molecule"; 120 DescriptionMap["molecule-by-name"] = "name of a molecule";121 122 DescriptionMap["order"] = "order of a discretization, dissection, ..."; 122 123 DescriptionMap["output-file"] = "name of the output file"; … … 145 146 ShortFormMap["linear-interpolate"] = "L"; 146 147 ShortFormMap["nonconvex-envelope"] = "N"; 147 ShortFormMap["pair-correlation"] = "C"; 148 ShortFormMap["pair-correlation"] = "CE"; 149 ShortFormMap["pair-correlation-point"] = "CP"; 150 ShortFormMap["pair-correlation-surface"] = "CS"; 148 151 ShortFormMap["parse-xyz"] = "p"; 149 152 ShortFormMap["remove-atom"] = "r"; … … 185 188 TypeMap["nonconvex-envelope"] = Molecule; 186 189 TypeMap["parse-xyz"] = String; 187 TypeMap["pair-correlation"] = String; 188 TypeMap["principal-axis-system"] = Molecule; 190 TypeMap["principal-axis-system"] = Axis; 189 191 TypeMap["remove-atom"] = Atom; 190 192 TypeMap["remove-sphere"] = Atom; … … 206 208 TypeMap["bin-end"] = Double; 207 209 TypeMap["bin-start"] = Double; 208 TypeMap["bin-width"] = Double;209 210 TypeMap["distance"] = Double; 210 211 TypeMap["distances"] = Vector; … … 216 217 TypeMap["MaxDistance"] = Double; 217 218 TypeMap["molecule-by-id"] = Molecule; 218 TypeMap["molecule-by-name"] = Molecule;219 219 TypeMap["order"] = Integer; 220 220 TypeMap["output-file"] = String; … … 224 224 // default values for any action that needs one (always string!) 225 225 DefaultValue["molecule-by-id"] = "-1"; 226 DefaultValue["bin-width"] = "0.5";227 DefaultValue["periodic"] = "0";228 226 229 227 … … 231 229 // generic.insert("add-atom"); 232 230 // generic.insert("bond-file"); 233 generic.insert("bond-table");231 // generic.insert("bond-table"); 234 232 generic.insert("boundary"); 235 233 // generic.insert("bound-in-box"); … … 242 240 // generic.insert("default-molname"); 243 241 generic.insert("depth-first-search"); 244 generic.insert("element-db");242 // generic.insert("element-db"); 245 243 // generic.insert("fastparsing"); 246 244 generic.insert("fill-molecule"); … … 250 248 // generic.insert("molecular-volume"); 251 249 // generic.insert("nonconvex-envelope"); 252 generic.insert("pair-correlation"); 250 // generic.insert("pair-correlation"); 251 // generic.insert("pair-correlation-point"); 252 // generic.insert("pair-correlation-surface"); 253 253 // generic.insert("parse-xyz"); 254 254 // generic.insert("principal-axis-system"); … … 256 256 // generic.insert("remove-sphere"); 257 257 generic.insert("repeat-box"); 258 generic.insert("rotate-to-pas");258 // generic.insert("rotate-to-pas"); 259 259 // generic.insert("save-adjacency"); 260 260 // generic.insert("save-bonds"); … … 269 269 generic.insert("version"); 270 270 // // list of generic values 271 // generic.insert("bin-output-file"); 272 // generic.insert("bin-end"); 273 // generic.insert("bin-start"); 271 274 // generic.insert("distance"); 272 275 // generic.insert("distances"); … … 275 278 generic.insert("input"); 276 279 // generic.insert("length"); 280 // generic.insert("output-file"); 281 // generic.insert("periodic"); 282 // generic.insert("position"); 277 283 // generic.insert("start-mol"); 278 284 … … 281 287 282 288 // hidden arguments 283 generic.insert("bin-end");284 generic.insert("bin-output-file");285 generic.insert("bin-start");286 generic.insert("bin-width");287 289 generic.insert("distance"); 288 290 generic.insert("DoRotate"); 289 291 generic.insert("distances"); 290 generic.insert("element");291 generic.insert("elements");292 292 generic.insert("lengths"); 293 293 generic.insert("MaxDistance"); 294 294 generic.insert("molecule-by-id"); 295 generic.insert("molecule-by-name");296 295 generic.insert("order"); 297 generic.insert("output-file");298 generic.insert("periodic");299 generic.insert("position");300 296 } 301 297 … … 545 541 } 546 542 547 /** Returns the inverse to MapOfActions::ShortFormMap, i.e. lookup actionname for its short form.548 * \return map from short form of action to name of action549 */550 map <std::string, std::string> MapOfActions::getShortFormToActionMap()551 {552 map <std::string, std::string> result;553 554 for (map<std::string, std::string>::iterator iter = ShortFormMap.begin(); iter != ShortFormMap.end(); ++iter)555 result[iter->second] = iter->first;556 557 return result;558 }559 543 560 544
Note:
See TracChangeset
for help on using the changeset viewer.