--------------------------------------------------------------------
| 266 | |
| 267 | // -------------------------------------------------------------------- |
| 268 | G4bool G4UIcommand::IsAvailable() |
| 269 | { |
| 270 | G4ApplicationState currentState = G4StateManager::GetStateManager()->GetCurrentState(); |
| 271 | |
| 272 | for (const auto& s : availabelStateList) { |
| 273 | if (s == currentState) { |
| 274 | return true; |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | return false; |
| 279 | } |
| 280 | |
| 281 | // -------------------------------------------------------------------- |
| 282 | G4double G4UIcommand::ValueOf(const char* unitName) |