Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/Action.hpp

    rda7ef9 re7ad08  
    1414#endif
    1515
     16#include <algorithm>
    1617#include <iosfwd>
    1718#include <string>
     
    2425 */
    2526#define NOPARAM_DEFAULT BOOST_PP_NIL
     27
     28namespace MoleCuilder {
     29  //!> helps normalizing Action's tokens for use as Python parameter names
     30#ifdef HAVE_INLINE
     31  inline
     32#endif
     33  std::string normalizeToken(std::string _token) {
     34    std::replace(_token.begin(), _token.end(), '-', '_');
     35    return _token;
     36  }
     37} /* namespace MoleCuilder */
    2638
    2739/** Nicely visible short-hand for push a status message
Note: See TracChangeset for help on using the changeset viewer.