Add a constant that can be used to identify groups.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1653 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
DrZiplok 2011-02-14 07:11:42 +00:00
parent 223af24398
commit 099ca305c9
2 changed files with 3 additions and 0 deletions

View File

@ -652,6 +652,7 @@ AP_Meta_class::Type_id AP_Var::k_typeid_float16; ///< meta_type_id() value fo
AP_Meta_class::Type_id AP_Var::k_typeid_int32; ///< meta_type_id() value for AP_Int32
AP_Meta_class::Type_id AP_Var::k_typeid_int16; ///< meta_type_id() value for AP_Int16
AP_Meta_class::Type_id AP_Var::k_typeid_int8; ///< meta_type_id() value for AP_Int8
AP_Meta_class::Type_id AP_Var::k_typeid_group; ///< meta_type_id() value for AP_Var_group
/// A special class used to initialise the k_typeid_* values that AP_Var exports.
///
@ -678,6 +679,7 @@ AP_Var_typesetup::AP_Var_typesetup(void)
AP_Var::k_typeid_int32 = AP_Meta_class::meta_type_id<AP_Int32>();
AP_Var::k_typeid_int16 = AP_Meta_class::meta_type_id<AP_Int16>();
AP_Var::k_typeid_int8 = AP_Meta_class::meta_type_id<AP_Int8>();
AP_Var::k_typeid_group = AP_Meta_class::meta_type_id<AP_Var_group>();
}
/// Cause the AP_Var_typesetup constructor to be run.

View File

@ -153,6 +153,7 @@ public:
static AP_Meta_class::Type_id k_typeid_int32; ///< meta_type_id() value for AP_Int32
static AP_Meta_class::Type_id k_typeid_int16; ///< meta_type_id() value for AP_Int16
static AP_Meta_class::Type_id k_typeid_int8; ///< meta_type_id() value for AP_Int8
static AP_Meta_class::Type_id k_typeid_group; ///< meta_type_id() value for AP_Var_group
/// Constructor for a freestanding variable
///