Changes in src/Actions/MapOfActions.cpp [8540f0:39af9f]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/MapOfActions.cpp
r8540f0 r39af9f 50 50 v = boost::any(BoxValue(BV)); 51 51 } 52 53 52 54 53 /** Constructor of class MapOfActions. … … 85 84 DescriptionMap["nonconvex-envelope"] = "create the non-convex envelope for a molecule"; 86 85 DescriptionMap["molecular-volume"] = "calculate the volume of a given molecule"; 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"; 86 DescriptionMap["pair-correlation"] = "pair correlation analysis between two elements, element and point or element and surface"; 90 87 DescriptionMap["parse-xyz"] = "parse xyz file into World"; 91 88 DescriptionMap["principal-axis-system"] = "calculate the principal axis system of the specified molecule"; … … 113 110 DescriptionMap["distances"] = "list of three of distances in space, one for each axis direction"; 114 111 DescriptionMap["DoRotate"] = "whether to rotate or just report angles"; 115 DescriptionMap["element"] = "set of elements"; 112 DescriptionMap["element"] = "single element"; 113 DescriptionMap["elements"] = "set of elements"; 116 114 DescriptionMap["end-mol"] = "last or end step"; 117 115 DescriptionMap["input"] = "name of input file"; … … 120 118 DescriptionMap["MaxDistance"] = "maximum distance in space"; 121 119 DescriptionMap["molecule-by-id"] = "index of a molecule"; 120 DescriptionMap["molecule-by-name"] = "name of a molecule"; 122 121 DescriptionMap["order"] = "order of a discretization, dissection, ..."; 123 122 DescriptionMap["output-file"] = "name of the output file"; … … 146 145 ShortFormMap["linear-interpolate"] = "L"; 147 146 ShortFormMap["nonconvex-envelope"] = "N"; 148 ShortFormMap["pair-correlation"] = "CE"; 149 ShortFormMap["pair-correlation-point"] = "CP"; 150 ShortFormMap["pair-correlation-surface"] = "CS"; 147 ShortFormMap["pair-correlation"] = "C"; 151 148 ShortFormMap["parse-xyz"] = "p"; 152 149 ShortFormMap["remove-atom"] = "r"; … … 188 185 TypeMap["nonconvex-envelope"] = Molecule; 189 186 TypeMap["parse-xyz"] = String; 190 TypeMap["principal-axis-system"] = Axis; 187 TypeMap["pair-correlation"] = String; 188 TypeMap["principal-axis-system"] = Molecule; 191 189 TypeMap["remove-atom"] = Atom; 192 190 TypeMap["remove-sphere"] = Atom; … … 208 206 TypeMap["bin-end"] = Double; 209 207 TypeMap["bin-start"] = Double; 208 TypeMap["bin-width"] = Double; 210 209 TypeMap["distance"] = Double; 211 210 TypeMap["distances"] = Vector; … … 217 216 TypeMap["MaxDistance"] = Double; 218 217 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"; 226 228 227 229 … … 229 231 // generic.insert("add-atom"); 230 232 // generic.insert("bond-file"); 231 //generic.insert("bond-table");233 generic.insert("bond-table"); 232 234 generic.insert("boundary"); 233 235 // generic.insert("bound-in-box"); … … 240 242 // generic.insert("default-molname"); 241 243 generic.insert("depth-first-search"); 242 //generic.insert("element-db");244 generic.insert("element-db"); 243 245 // generic.insert("fastparsing"); 244 246 generic.insert("fill-molecule"); … … 248 250 // generic.insert("molecular-volume"); 249 251 // generic.insert("nonconvex-envelope"); 250 // generic.insert("pair-correlation"); 251 // generic.insert("pair-correlation-point"); 252 // generic.insert("pair-correlation-surface"); 252 generic.insert("pair-correlation"); 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");274 271 // generic.insert("distance"); 275 272 // generic.insert("distances"); … … 278 275 generic.insert("input"); 279 276 // generic.insert("length"); 280 // generic.insert("output-file");281 // generic.insert("periodic");282 // generic.insert("position");283 277 // generic.insert("start-mol"); 284 278 … … 287 281 288 282 // hidden arguments 283 generic.insert("bin-end"); 284 generic.insert("bin-output-file"); 285 generic.insert("bin-start"); 286 generic.insert("bin-width"); 289 287 generic.insert("distance"); 290 288 generic.insert("DoRotate"); 291 289 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"); 295 296 generic.insert("order"); 297 generic.insert("output-file"); 298 generic.insert("periodic"); 299 generic.insert("position"); 296 300 } 297 301 … … 541 545 } 542 546 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 action 549 */ 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 } 543 559 544 560
Note:
See TracChangeset
for help on using the changeset viewer.