- Timestamp:
- 08/23/16 17:34:48 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/declare_ref_func.hpp
r921 r922 18 18 bool hasDirect##type##Reference(void) const; \ 19 19 C##type* getDirect##type##Reference(void) const; \ 20 const StdString& get##type##OutputName(void) const; \21 void setAttributesReference(bool apply = true); \20 const StdString& get##type##OutputName(void) const; \ 21 void setAttributesReference(bool apply = true); \ 22 22 \ 23 23 private: \ … … 89 89 { \ 90 90 if (!this->name.isEmpty()) \ 91 return this->name; \ 91 return this->name; \ 92 92 else if (hasDirect##type##Reference()) \ 93 93 { \ … … 95 95 StdString nameRef = this->name_##_ref; \ 96 96 while (refer_ptr->hasAutoGeneratedId() && \ 97 (C##type::has(nameRef))) \ 98 { \ 97 (C##type::has(nameRef))) \ 98 { \ 99 99 tmp_ptr = refer_ptr; \ 100 100 refer_ptr = tmp_ptr->getDirect##type##Reference(); \ 101 nameRef = (refer_ptr->hasDirect##type##Reference())\102 ? refer_ptr->name_##_ref : nameRef;\103 } \ 101 if (refer_ptr->hasDirect##type##Reference()) \ 102 nameRef = refer_ptr->name_##_ref; \ 103 } \ 104 104 return refer_ptr->name_##_ref; \ 105 105 } \
Note: See TracChangeset
for help on using the changeset viewer.