Unknown.cpp 2.52 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
///
////// \file
///
///
/// Created by Sebastien Gilles <sebastien.gilles@inria.fr> on the Tue, 24 Mar 2015 17:15:58 +0100
/// Copyright (c) Inria. All rights reserved.
///
/// \ingroup CoreGroup
/// \addtogroup CoreGroup
/// \{
11

12
#include "Utilities/String/EmptyString.hpp"
13

14
#include "Core/InputParameter/FElt/Impl/Unknown.hpp"
15 16


17
namespace MoReFEM
18 19 20 21 22 23 24
{
    
    
    namespace InputParameter
    {
        
        
25
        namespace Impl
26 27 28
        {
            
            
29
            namespace UnknownNS
30 31
            {
                
32
                                
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
                const std::string& Name::NameInFile()
                {
                    static std::string ret("name");
                    return ret;
                }
                
                
                const std::string& Name::Description()
                {
                    static std::string ret("Name of the unknown (used for displays in output).");
                    return ret;
                }
                
                
                const std::string& Name::Constraint()
                {
49
                    return Utilities::EmptyString();
50 51 52 53 54 55
                }
                
                
                
                const std::string& Name::DefaultValue()
                {
56
                    return Utilities::EmptyString();
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
                }

                
                
                const std::string& Nature::NameInFile()
                {
                    static std::string ret("nature");
                    return ret;
                }
                
                
                const std::string& Nature::Description()
                {
                    static std::string ret("Index of the god of dof into which the finite element space is defined.");
                    return ret;
                }
                
                
                const std::string& Nature::Constraint()
                {
77
                    static std::string ret("value_in(v, {'scalar', 'vectorial'})");
78 79 80 81 82 83 84
                    return ret;
                }
                
                
                
                const std::string& Nature::DefaultValue()
                {
85
                    return Utilities::EmptyString();
86 87
                }
                
88
                                
89
                           
90
            } // namespace UnknownNS
91 92
            
            
93
        } // namespace Impl
94 95
        
        
96
    } // namespace InputParameter
97 98
  

99
} // namespace MoReFEM
100 101 102


/// @} // addtogroup CoreGroup