コード例 #1
0
ファイル: ActionRegister.cpp プロジェクト: apoma/plumed2
bool ActionRegister::printManual( const std::string& action ){
  if ( check(action) ){
     Keywords keys; mk[action](keys); 
     keys.print_html(true); keys.destroyData();
     return true;
  } else {
     return false;
  } 
}
コード例 #2
0
ファイル: ActionRegister.cpp プロジェクト: JFDama/plumed2
bool ActionRegister::printManual( const std::string& action, const bool& vimout ) {
  if ( check(action) ) {
    Keywords keys; mk[action](keys);
    if( vimout ) {
      printf("%s",action.c_str()); keys.print_vim(); printf("\n");
    } else {
      keys.print_html();
    }
    keys.destroyData();
    return true;
  } else {
    return false;
  }
}