Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/MapOfActions.cpp

    r39af9f r8540f0  
    5050  v = boost::any(BoxValue(BV));
    5151}
     52
    5253
    5354/** Constructor of class MapOfActions.
     
    8485  DescriptionMap["nonconvex-envelope"] = "create the non-convex envelope for a molecule";
    8586  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";
    8790  DescriptionMap["parse-xyz"] = "parse xyz file into World";
    8891  DescriptionMap["principal-axis-system"] = "calculate the principal axis system of the specified molecule";
     
    110113  DescriptionMap["distances"] = "list of three of distances in space, one for each axis direction";
    111114  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";
    114116  DescriptionMap["end-mol"] = "last or end step";
    115117  DescriptionMap["input"] = "name of input file";
     
    118120  DescriptionMap["MaxDistance"] = "maximum distance in space";
    119121  DescriptionMap["molecule-by-id"] = "index of a molecule";
    120   DescriptionMap["molecule-by-name"] = "name of a molecule";
    121122  DescriptionMap["order"] = "order of a discretization, dissection, ...";
    122123  DescriptionMap["output-file"] = "name of the output file";
     
    145146  ShortFormMap["linear-interpolate"] = "L";
    146147  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";
    148151  ShortFormMap["parse-xyz"] = "p";
    149152  ShortFormMap["remove-atom"] = "r";
     
    185188  TypeMap["nonconvex-envelope"] = Molecule;
    186189  TypeMap["parse-xyz"] = String;
    187   TypeMap["pair-correlation"] = String;
    188   TypeMap["principal-axis-system"] = Molecule;
     190  TypeMap["principal-axis-system"] = Axis;
    189191  TypeMap["remove-atom"] = Atom;
    190192  TypeMap["remove-sphere"] = Atom;
     
    206208  TypeMap["bin-end"] = Double;
    207209  TypeMap["bin-start"] = Double;
    208   TypeMap["bin-width"] = Double;
    209210  TypeMap["distance"] = Double;
    210211  TypeMap["distances"] = Vector;
     
    216217  TypeMap["MaxDistance"] = Double;
    217218  TypeMap["molecule-by-id"] = Molecule;
    218   TypeMap["molecule-by-name"] = Molecule;
    219219  TypeMap["order"] = Integer;
    220220  TypeMap["output-file"] = String;
     
    224224  // default values for any action that needs one (always string!)
    225225  DefaultValue["molecule-by-id"] = "-1";
    226   DefaultValue["bin-width"] = "0.5";
    227   DefaultValue["periodic"] = "0";
    228226
    229227
     
    231229//      generic.insert("add-atom");
    232230//  generic.insert("bond-file");
    233         generic.insert("bond-table");
     231//      generic.insert("bond-table");
    234232  generic.insert("boundary");
    235233//  generic.insert("bound-in-box");
     
    242240//      generic.insert("default-molname");
    243241        generic.insert("depth-first-search");
    244         generic.insert("element-db");
     242//      generic.insert("element-db");
    245243//      generic.insert("fastparsing");
    246244  generic.insert("fill-molecule");
     
    250248//  generic.insert("molecular-volume");
    251249//  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");
    253253//      generic.insert("parse-xyz");
    254254//  generic.insert("principal-axis-system");
     
    256256//  generic.insert("remove-sphere");
    257257  generic.insert("repeat-box");
    258   generic.insert("rotate-to-pas");
     258//  generic.insert("rotate-to-pas");
    259259//      generic.insert("save-adjacency");
    260260//  generic.insert("save-bonds");
     
    269269        generic.insert("version");
    270270//      // list of generic values
     271//      generic.insert("bin-output-file");
     272//  generic.insert("bin-end");
     273//  generic.insert("bin-start");
    271274//  generic.insert("distance");
    272275//  generic.insert("distances");
     
    275278    generic.insert("input");
    276279//  generic.insert("length");
     280//  generic.insert("output-file");
     281//  generic.insert("periodic");
     282//  generic.insert("position");
    277283//  generic.insert("start-mol");
    278284
     
    281287
    282288    // hidden arguments
    283   generic.insert("bin-end");
    284   generic.insert("bin-output-file");
    285   generic.insert("bin-start");
    286   generic.insert("bin-width");
    287289  generic.insert("distance");
    288290  generic.insert("DoRotate");
    289291  generic.insert("distances");
    290   generic.insert("element");
    291   generic.insert("elements");
    292292  generic.insert("lengths");
    293293  generic.insert("MaxDistance");
    294294  generic.insert("molecule-by-id");
    295   generic.insert("molecule-by-name");
    296295  generic.insert("order");
    297   generic.insert("output-file");
    298   generic.insert("periodic");
    299   generic.insert("position");
    300296}
    301297
     
    545541}
    546542
    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 }
    559543
    560544
Note: See TracChangeset for help on using the changeset viewer.