Teuchos - Trilinos Tools Package  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Teuchos_ValidatorFactory.hpp
1 // @HEADER
2 // *****************************************************************************
3 // Teuchos: Common Tools Package
4 //
5 // Copyright 2004 NTESS and the Teuchos contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #ifndef TEUCHOS_VALIDATORFACTORY_HPP_
11 #define TEUCHOS_VALIDATORFACTORY_HPP_
12 
13 
14 #include "Teuchos_StandardParameterEntryValidators.hpp"
15 
16 
17 namespace Teuchos {
18 
19 
23 public:
24 
25  enum ValidatorType{Int, Short, Double, Float, FileName,
26  IntArray, ShortArray, DoubleArray, FloatArray, FileNameArray};
27 
32  static RCP<ParameterEntryValidator> createValidator(ValidatorType valiType);
33 
36 
39 
42 
45 
48 
51 
54 
57 
60 
63 
64 };
65 
66 
67 } // namespace Teuchos
68 
69 
70 #endif /* TEUCHOS_VALIDATORFACTORY_HPP_ */
static RCP< ArrayNumberValidator< short > > getArrayShortValidator()
Creates and returns an Array Number Validator of type short.
static RCP< EnhancedNumberValidator< double > > getDoubleValidator()
Creates and returns a Enhanced Number Validator of type double.
static RCP< ArrayFileNameValidator > getArrayFileNameValidator()
Creates and returns an Array File Name Validator.
static RCP< EnhancedNumberValidator< int > > getIntValidator()
Creates and returns a Enhanced Number Validator of type int.
static RCP< ArrayNumberValidator< double > > getArrayDoubleValidator()
Creates and returns an Array Number Validator of type double.
static RCP< EnhancedNumberValidator< float > > getFloatValidator()
Creates and returns a Enhanced Number Validator of type float.
static RCP< ParameterEntryValidator > createValidator(ValidatorType valiType)
Creates a validator of the given type.
static RCP< ArrayNumberValidator< float > > getArrayFloatValidator()
Creates and returns an Array Number Validator of type float.
Factory for ParameterEntryValidator objects.
static RCP< ArrayNumberValidator< int > > getArrayIntValidator()
Creates and returns an Array Number Validator of type int.
static RCP< FileNameValidator > getFileNameValidator()
Creates and returns FileNameValidator.
Smart reference counting pointer class for automatic garbage collection.
static RCP< EnhancedNumberValidator< short > > getShortValidator()
Creates and returns a Enhanced Number Validator of type short.