Ignore:
Timestamp:
12/03/14 11:41:54 (7 years ago)
Author:
rlacroix
Message:

Make the variable typing stricter.

The type must now be one of:

  • bool
  • int or int32
  • int16
  • int64
  • float
  • double
  • string

WARNING: The variable type was previously not checked and using an unsupported type did not lead to any error message. Be aware that this change can make your existing configuration files invalid. However the adjustments required to adapt existing files should be minor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/variable.hpp

    r501 r527  
    77#include "group_template.hpp" 
    88#include "array_new.hpp" 
     9#include "attribute_enum.hpp" 
     10#include "attribute_enum_impl.hpp" 
    911 
    1012namespace xios 
     
    5557 
    5658         public : 
    57             enum EVarType 
    58             {  t_int, t_short_int, t_long_int, t_float, t_double, t_long_double, t_bool, t_string, t_undefined } ; 
    59  
    60  
    6159            /// Autres /// 
    6260            virtual void parse(xml::CXMLNode & node); 
     
    7472            template <typename T, StdSize N> 
    7573            inline void getData(CArray<T, N>& _data_array) const; 
    76  
    77             EVarType getVarType(void) const ; 
    7874 
    7975            static bool dispatchEvent(CEventServer& event) ; 
     
    139135      // Declare/Define CVarGroup and CVarDefinition 
    140136      DECLARE_GROUP_PARSE_REDEF(CVariable); 
    141  
    142  
    143  
    144137} // namespace xios 
    145138 
Note: See TracChangeset for help on using the changeset viewer.