| 1 | /* |
| 2 | Copyright (C) 2021 by Pawel Soja <[email protected]> |
| 3 | |
| 4 | This library is free software; you can redistribute it and/or |
| 5 | modify it under the terms of the GNU Lesser General Public |
| 6 | License as published by the Free Software Foundation; either |
| 7 | version 2.1 of the License, or (at your option) any later version. |
| 8 | |
| 9 | This library is distributed in the hope that it will be useful, |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 | Lesser General Public License for more details. |
| 13 | |
| 14 | You should have received a copy of the GNU Lesser General Public |
| 15 | License along with this library; if not, write to the Free Software |
| 16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 17 | */ |
| 18 | |
| 19 | #pragma once |
| 20 | |
| 21 | #include "indiapi.h"cxx . . $ `<file>/build/libs/indicore/indiapi.h`/ |
| 22 | #include "indidevapi.h"cxx . . $ `<file>/libs/indicore/indidevapi.h`/ |
| 23 | #include "indiwidgettraits.h"cxx . . $ `<file>/libs/indidevice/property/indiwidgettraits.h`/ |
| 24 | #include "indiwidgetview.h"cxx . . $ `<file>/libs/indidevice/property/indiwidgetview.h`/ |
| 25 | |
| 26 | #include <string> |
| 27 | #include <cstring> |
| 28 | #include <cstdarg> |
| 29 | #include <cstdlib> |
| 30 | #include <type_traits> |
| 31 | |
| 32 | namespace INDIcxx . . $ INDI/ |
| 33 | { |
| 34 | |
| 35 | template <typename> struct WidgetViewcxx . . $ INDI/WidgetView#; |
| 36 | template <typename> struct PropertyViewcxx . . $ INDI/PropertyView#; |
| 37 | |
| 38 | #define PROPERTYVIEW_BASE_ACCESScxx . . $ `libs/indidevice/property/indipropertyview.h:38:9`! public |
| 39 | // don't use direct access to low-level property |
| 40 | //#define PROPERTYVIEW_BASE_ACCESS protected // future |
| 41 | |
| 42 | /** |
| 43 | * \class INDI::PropertyView and INDI::WidgetView |
| 44 | * \brief Provides decorator for Low-Level IXXXVectorProperty/IXXX |
| 45 | * |
| 46 | * INDI::PropertyView |
| 47 | * |
| 48 | * A class that will allow a easy transition to the new widget handling interface (future). |
| 49 | * - Use PropertyView<IText> instead of ITextVectorProperty |
| 50 | * - Use PropertyView<INumber> instead of INumberVectorProperty |
| 51 | * - Use PropertyView<ISwitch> instead of ISwitchVectorProperty |
| 52 | * - Use PropertyView<ILight> instead of ILightVectorProperty |
| 53 | * - Use PropertyView<IBLOB> instead of IBLOBVectorProperty |
| 54 | * |
| 55 | * The PropertyView<IXXX> class is compatible with low-level IXXXVectorProperty structures. |
| 56 | * |
| 57 | * INDI::WidgetView |
| 58 | * |
| 59 | * A class that will allow a easy transition to the new widget handling interface (future). |
| 60 | * - Use WidgetView<IText> instead of IText |
| 61 | * - Use WidgetView<INumber> instead of INumber |
| 62 | * - Use WidgetView<ISwitch> instead of ISwitch |
| 63 | * - Use WidgetView<ILight> instead of ILight |
| 64 | * - Use WidgetView<IBLOB> instead of IBLOB |
| 65 | * |
| 66 | * The WidgetView<IXXX> class is compatible with low-level IXXX structures. |
| 67 | */ |
| 68 | |
| 69 | template <typename T> |
| 70 | struct PropertyViewcxx . . $ INDI/PropertyView#: PROPERTYVIEW_BASE_ACCESScxx . . $ `libs/indidevice/property/indipropertyview.h:38:9`! WidgetTraitscxx . . $ INDI/WidgetTraits#<T>::PropertyType |
| 71 | { |
| 72 | using Typecxx . . $ INDI/PropertyView#Type# = T; |
| 73 | using PropertyTypecxx . . $ INDI/PropertyView#PropertyType# = typename WidgetTraitscxx . . $ INDI/WidgetTraits#<T>::PropertyType; |
| 74 | using WidgetTypecxx . . $ INDI/PropertyView#WidgetType# = WidgetViewcxx . . $ INDI/WidgetView#<T>; |
| 75 | |
| 76 | friend class Propertycxx . . $ INDI/Property#; |
| 77 | friend class PropertyPrivatecxx . . $ INDI/PropertyPrivate#; |
| 78 | friend class BaseDevicecxx . . $ INDI/BaseDevice#; |
| 79 | friend class DefaultDevicecxx . . $ INDI/DefaultDevice#; |
| 80 | template <typename> |
| 81 | friend struct WidgetViewcxx . . $ INDI/WidgetView#; |
| 82 | |
| 83 | template <typename X, typename Needed> |
| 84 | using enable_if_is_same_tcxx . . $ INDI/PropertyView#enable_if_is_same_t# = typename stdcxx . . $ std/::enable_if<std::is_same<X, Needed>::value, bool>::type; |
| 85 | public: |
| 86 | PropertyViewcxx . . $ INDI/PropertyView#`PropertyView<type-parameter-0-0>`(49f6e7a06ebc5aa8).(); |
| 87 | |
| 88 | // #PS: do not delete items, they may be on the stack. |
| 89 | //~PropertyView() { for(auto &p: *this) {p.clear();} free(widget()); } |
| 90 | |
| 91 | public: |
| 92 | void setDeviceNamecxx . . $ INDI/PropertyView#setDeviceName(85c52e162fed56f9).(const char *name); /* outside implementation */ |
| 93 | void setDeviceNamecxx . . $ INDI/PropertyView#setDeviceName(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &name); /* outside implementation */ |
| 94 | |
| 95 | void setNamecxx . . $ INDI/PropertyView#setName(85c52e162fed56f9).(const char *name); /* outside implementation */ |
| 96 | void setNamecxx . . $ INDI/PropertyView#setName(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &name); /* outside implementation */ |
| 97 | |
| 98 | void setLabelcxx . . $ INDI/PropertyView#setLabel(85c52e162fed56f9).(const char *label); /* outside implementation */ |
| 99 | void setLabelcxx . . $ INDI/PropertyView#setLabel(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &label); /* outside implementation */ |
| 100 | |
| 101 | void setGroupNamecxx . . $ INDI/PropertyView#setGroupName(85c52e162fed56f9).(const char *name); /* outside implementation */ |
| 102 | void setGroupNamecxx . . $ INDI/PropertyView#setGroupName(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &name); /* outside implementation */ |
| 103 | |
| 104 | void setPermissioncxx . . $ INDI/PropertyView#setPermission(bc7e9c04cd4ce0c1).(IPermcxx . . $ IPerm# permission); /* outside implementation */ |
| 105 | void setTimeoutcxx . . $ INDI/PropertyView#setTimeout(ba8836b59fb42830).(double timeout); /* outside implementation */ |
| 106 | void setStatecxx . . $ INDI/PropertyView#setState(ee719c9a0415d7f7).(IPStatecxx . . $ IPState# state); |
| 107 | |
| 108 | void setTimestampcxx . . $ INDI/PropertyView#setTimestamp(85c52e162fed56f9).(const char *timestamp); /* outside implementation */ |
| 109 | void setTimestampcxx . . $ INDI/PropertyView#setTimestamp(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# ×tamp); /* outside implementation */ |
| 110 | |
| 111 | void setAuxcxx . . $ INDI/PropertyView#setAux(5d22bdacc48458e8).(void *user); /* outside implementation */ |
| 112 | void setWidgetscxx . . $ INDI/PropertyView#setWidgets(ffe13ae7fb405683).(WidgetTypecxx . . $ INDI/PropertyView#WidgetType# *w, size_t count); /* outside implementation */ |
| 113 | |
| 114 | template <size_t N> |
| 115 | void setWidgetscxx . . $ INDI/PropertyView#setWidgets(2fae04f3131b689a).(WidgetTypecxx . . $ INDI/PropertyView#WidgetType# (&w)[N]); /* outside implementation */ |
| 116 | |
| 117 | public: // only for ISwitch |
| 118 | void setRulecxx . . $ INDI/PropertyView#setRule(eb6e1aaf803c8b5a).(ISRulecxx . . $ ISRule# rule); /* outside implementation */ |
| 119 | bool setRulecxx . . $ INDI/PropertyView#setRule(7c222eea44a24d43).(const stdcxx . . $ std/::stringcxx . . $ std/string# &rule); /* outside implementation */ |
| 120 | |
| 121 | template <typename X = T, enable_if_is_same_tcxx . . $ INDI/PropertyView#enable_if_is_same_t#<X, ISwitchcxx . . $ ISwitch#> = true> |
| 122 | void resetcxx . . $ INDI/PropertyView#reset(49f6e7a06ebc5aa8).() |
| 123 | { |
| 124 | IUResetSwitch(this); |
| 125 | } |
| 126 | |
| 127 | template <typename X = T, enable_if_is_same_tcxx . . $ INDI/PropertyView#enable_if_is_same_t#<X, ISwitchcxx . . $ ISwitch#> = true> |
| 128 | WidgetTypecxx . . $ INDI/PropertyView#WidgetType# * findOnSwitchcxx . . $ INDI/PropertyView#findOnSwitch(eeb57b8496a2d8e5).() const |
| 129 | { |
| 130 | return static_cast<WidgetTypecxx . . $ INDI/PropertyView#WidgetType# *>(IUFindOnSwitch(this)); |
| 131 | } |
| 132 | |
| 133 | template <typename X = T, enable_if_is_same_tcxx . . $ INDI/PropertyView#enable_if_is_same_t#<X, ISwitchcxx . . $ ISwitch#> = true> |
| 134 | int findOnSwitchIndexcxx . . $ INDI/PropertyView#findOnSwitchIndex(455f465bc33b4cdf).() const |
| 135 | { |
| 136 | return IUFindOnSwitchIndex(this); |
| 137 | } |
| 138 | |
| 139 | public: // only for INumber |
| 140 | template <typename X = T, enable_if_is_same_tcxx . . $ INDI/PropertyView#enable_if_is_same_t#<X, INumbercxx . . $ INumber#> = true> |
| 141 | void updateMinMaxcxx . . $ INDI/PropertyView#updateMinMax(49f6e7a06ebc5aa8).(); /* outside implementation - only driver side, see indipropertyview_driver.cpp */ |
| 142 | |
| 143 | public: //getters |
| 144 | const char *getDeviceNamecxx . . $ INDI/PropertyView#getDeviceName(a9f41ea0e82d88cf).() const |
| 145 | { |
| 146 | return this->device; |
| 147 | } |
| 148 | const char *getNamecxx . . $ INDI/PropertyView#getName(a9f41ea0e82d88cf).() const |
| 149 | { |
| 150 | return this->name; |
| 151 | } |
| 152 | const char *getLabelcxx . . $ INDI/PropertyView#getLabel(a9f41ea0e82d88cf).() const |
| 153 | { |
| 154 | return this->label; |
| 155 | } |
| 156 | const char *getGroupNamecxx . . $ INDI/PropertyView#getGroupName(a9f41ea0e82d88cf).() const |
| 157 | { |
| 158 | return this->group; |
| 159 | } |
| 160 | |
| 161 | IPermcxx . . $ IPerm# getPermissioncxx . . $ INDI/PropertyView#getPermission(f8f84b696517e164).() const; /* outside implementation */ |
| 162 | const char *getPermissionAsStringcxx . . $ INDI/PropertyView#getPermissionAsString(a9f41ea0e82d88cf).() const |
| 163 | { |
| 164 | return permStr(getPermissioncxx . . $ INDI/PropertyView#getPermission(f8f84b696517e164).()); |
| 165 | } |
| 166 | |
| 167 | ISRulecxx . . $ ISRule# getRulecxx . . $ INDI/PropertyView#getRule(dd4f51758073f870).() const; /* outside implementation */ |
| 168 | const char * getRuleAsStringcxx . . $ INDI/PropertyView#getRuleAsString(a9f41ea0e82d88cf).() const |
| 169 | { |
| 170 | return ruleStr(getRulecxx . . $ INDI/PropertyView#getRule(dd4f51758073f870).()); |
| 171 | } |
| 172 | |
| 173 | double getTimeoutcxx . . $ INDI/PropertyView#getTimeout(21b6c25e127938e2).() const; /* outside implementation */ |
| 174 | IPStatecxx . . $ IPState# getStatecxx . . $ INDI/PropertyView#getState(4693a3a3becca828).() const |
| 175 | { |
| 176 | return this->s; |
| 177 | } |
| 178 | const char *getStateAsStringcxx . . $ INDI/PropertyView#getStateAsString(a9f41ea0e82d88cf).() const |
| 179 | { |
| 180 | return pstateStr(getStatecxx . . $ INDI/PropertyView#getState(4693a3a3becca828).()); |
| 181 | } |
| 182 | |
| 183 | const char *getTimestampcxx . . $ INDI/PropertyView#getTimestamp(a9f41ea0e82d88cf).() const |
| 184 | { |
| 185 | return this->timestamp; |
| 186 | } |
| 187 | void *getAuxcxx . . $ INDI/PropertyView#getAux(45a5c5ac6be858a8).() const |
| 188 | { |
| 189 | return this->aux; |
| 190 | } |
| 191 | |
| 192 | int countcxx . . $ INDI/PropertyView#count(455f465bc33b4cdf).() const; /* outside implementation */ |
| 193 | WidgetTypecxx . . $ INDI/PropertyView#WidgetType# *widgetcxx . . $ INDI/PropertyView#widget(eeb57b8496a2d8e5).() const; /* outside implementation */ |
| 194 | |
| 195 | WidgetTypecxx . . $ INDI/PropertyView#WidgetType# *findWidgetByNamecxx . . $ INDI/PropertyView#findWidgetByName(2002a9aa5a751df5).(const char *name) const; /* outside implementation */ |
| 196 | |
| 197 | public: //tests |
| 198 | bool isEmptycxx . . $ INDI/PropertyView#isEmpty(50ce9a9e25b4a850).() const |
| 199 | { |
| 200 | return widgetcxx . . $ INDI/PropertyView#widget(eeb57b8496a2d8e5).() == nullptr || countcxx . . $ INDI/PropertyView#count(455f465bc33b4cdf).() == 0; |
| 201 | } |
| 202 | |
| 203 | bool isNameMatchcxx . . $ INDI/PropertyView#isNameMatch(7d4bdb1abc417636).(const char *otherName) const |
| 204 | { |
| 205 | return !strcmp(getNamecxx . . $ INDI/PropertyView#getName(a9f41ea0e82d88cf).(), otherName); |
| 206 | } |
| 207 | bool isNameMatchcxx . . $ INDI/PropertyView#isNameMatch(13a55b95a0133754).(const stdcxx . . $ std/::stringcxx . . $ std/string# &otherName) const |
| 208 | { |
| 209 | return getNamecxx . . $ INDI/PropertyView#getName(a9f41ea0e82d88cf).() == otherName; |
| 210 | } |
| 211 | |
| 212 | bool isLabelMatchcxx . . $ INDI/PropertyView#isLabelMatch(7d4bdb1abc417636).(const char *otherLabel) const |
| 213 | { |
| 214 | return !strcmp(getLabelcxx . . $ INDI/PropertyView#getLabel(a9f41ea0e82d88cf).(), otherLabel); |
| 215 | } |
| 216 | bool isLabelMatchcxx . . $ INDI/PropertyView#isLabelMatch(13a55b95a0133754).(const stdcxx . . $ std/::stringcxx . . $ std/string# &otherLabel) const |
| 217 | { |
| 218 | return getLabelcxx . . $ INDI/PropertyView#getLabel(a9f41ea0e82d88cf).() == otherLabel; |
| 219 | } |
| 220 | |
| 221 | public: // only driver side |
| 222 | void savecxx . . $ INDI/PropertyView#save(e682089247c2ee8c).(FILEcxx . . $ FILE# *f) const; /* outside implementation */ |
| 223 | |
| 224 | void vapplycxx . . $ INDI/PropertyView#vapply(ec80cf22ce6ebf5d).(const char *format, va_listcxx . . $ va_list# args) |
| 225 | const; /* outside implementation - only driver side, see indipropertyview_driver.cpp */ |
| 226 | void vdefinecxx . . $ INDI/PropertyView#vdefine(ec80cf22ce6ebf5d).(const char *format, va_listcxx . . $ va_list# args) |
| 227 | const; /* outside implementation - only driver side, see indipropertyview_driver.cpp */ |
| 228 | |
| 229 | void applycxx . . $ INDI/PropertyView#apply(99ceeb43fa8db937).(const char *format, ...) const ATTRIBUTE_FORMAT_PRINTFcxx . . $ `libs/indicore/indidevapi.h:137:11`!(2, |
| 230 | 3); /* outside implementation - only driver side, see indipropertyview_driver.cpp */ |
| 231 | void definecxx . . $ INDI/PropertyView#define(99ceeb43fa8db937).(const char *format, ...) const ATTRIBUTE_FORMAT_PRINTFcxx . . $ `libs/indicore/indidevapi.h:137:11`!(2, |
| 232 | 3); /* outside implementation - only driver side, see indipropertyview_driver.cpp */ |
| 233 | |
| 234 | void applycxx . . $ INDI/PropertyView#apply(83f5f38750778ac8).() const |
| 235 | { |
| 236 | applycxx . . $ INDI/PropertyView#apply(83f5f38750778ac8).(nullptr); |
| 237 | } |
| 238 | void definecxx . . $ INDI/PropertyView#define(83f5f38750778ac8).() const |
| 239 | { |
| 240 | definecxx . . $ INDI/PropertyView#define(83f5f38750778ac8).(nullptr); |
| 241 | } |
| 242 | |
| 243 | public: |
| 244 | template <typename X = T, enable_if_is_same_tcxx . . $ INDI/PropertyView#enable_if_is_same_t#<X, ITextcxx . . $ IText#> = true> |
| 245 | void fillcxx . . $ INDI/PropertyView#fill(4e6711d7763a5573).( |
| 246 | const char *device, const char *name, const char *label, const char *group, |
| 247 | IPermcxx . . $ IPerm# permission, double timeout, IPStatecxx . . $ IPState# state |
| 248 | ); /* outside implementation - only driver side, see indipropertyview_driver.cpp */ |
| 249 | |
| 250 | template <typename X = T, enable_if_is_same_tcxx . . $ INDI/PropertyView#enable_if_is_same_t#<X, INumbercxx . . $ INumber#> = true> |
| 251 | void fillcxx . . $ INDI/PropertyView#fill(4e6711d7763a5573).( |
| 252 | const char *device, const char *name, const char *label, const char *group, |
| 253 | IPermcxx . . $ IPerm# permission, double timeout, IPStatecxx . . $ IPState# state |
| 254 | ); /* outside implementation - only driver side, see indipropertyview_driver.cpp */ |
| 255 | |
| 256 | template <typename X = T, enable_if_is_same_tcxx . . $ INDI/PropertyView#enable_if_is_same_t#<X, ISwitchcxx . . $ ISwitch#> = true> |
| 257 | void fillcxx . . $ INDI/PropertyView#fill(d578bcf9e79ec3e6).( |
| 258 | const char *device, const char *name, const char *label, const char *group, |
| 259 | IPermcxx . . $ IPerm# permission, ISRulecxx . . $ ISRule# rule, double timeout, IPStatecxx . . $ IPState# state |
| 260 | ); /* outside implementation - only driver side, see indipropertyview_driver.cpp */ |
| 261 | |
| 262 | template <typename X = T, enable_if_is_same_tcxx . . $ INDI/PropertyView#enable_if_is_same_t#<X, ILightcxx . . $ ILight#> = true> |
| 263 | void fillcxx . . $ INDI/PropertyView#fill(d6309e7d54a2d306).( |
| 264 | const char *device, const char *name, const char *label, const char *group, |
| 265 | IPStatecxx . . $ IPState# state |
| 266 | ); /* outside implementation - only driver side, see indipropertyview_driver.cpp */ |
| 267 | |
| 268 | template <typename X = T, enable_if_is_same_tcxx . . $ INDI/PropertyView#enable_if_is_same_t#<X, IBLOBcxx . . $ IBLOB#> = true> |
| 269 | void fillcxx . . $ INDI/PropertyView#fill(4e6711d7763a5573).( |
| 270 | const char *device, const char *name, const char *label, const char *group, |
| 271 | IPermcxx . . $ IPerm# permission, double timeout, IPStatecxx . . $ IPState# state |
| 272 | ); /* outside implementation - only driver side, see indipropertyview_driver.cpp */ |
| 273 | |
| 274 | public: |
| 275 | template <typename X = T, enable_if_is_same_tcxx . . $ INDI/PropertyView#enable_if_is_same_t#<X, ITextcxx . . $ IText#> = true> |
| 276 | bool updatecxx . . $ INDI/PropertyView#update(5b09b1e2ea7f43ac).(const char * const texts[], const char * const names[], int n); |
| 277 | /* outside implementation - only driver side, see indipropertyview_driver.cpp */ |
| 278 | |
| 279 | template <typename X = T, enable_if_is_same_tcxx . . $ INDI/PropertyView#enable_if_is_same_t#<X, INumbercxx . . $ INumber#> = true> |
| 280 | bool updatecxx . . $ INDI/PropertyView#update(b18809d3967a8c77).(const double values[], const char * const names[], int n); |
| 281 | /* outside implementation - only driver side, see indipropertyview_driver.cpp */ |
| 282 | |
| 283 | template <typename X = T, enable_if_is_same_tcxx . . $ INDI/PropertyView#enable_if_is_same_t#<X, ISwitchcxx . . $ ISwitch#> = true> |
| 284 | bool updatecxx . . $ INDI/PropertyView#update(c02dc5c3aaadb034).(const ISStatecxx . . $ ISState# states[], const char * const names[], int n); |
| 285 | /* outside implementation - only driver side, see indipropertyview_driver.cpp */ |
| 286 | |
| 287 | /* |
| 288 | template <typename X = T, enable_if_is_same_t<X, ILight> = true> |
| 289 | bool update(..., const char * const names[], int n); |
| 290 | */ |
| 291 | |
| 292 | template <typename X = T, enable_if_is_same_tcxx . . $ INDI/PropertyView#enable_if_is_same_t#<X, IBLOBcxx . . $ IBLOB#> = true> |
| 293 | bool updatecxx . . $ INDI/PropertyView#update(f51829ea1de53e09).( |
| 294 | const int sizes[], const int blobsizes[], const char * const blobs[], const char * const formats[], |
| 295 | const char * const names[], int n |
| 296 | ); /* outside implementation - only driver side, see indipropertyview_driver.cpp */ |
| 297 | |
| 298 | |
| 299 | public: |
| 300 | WidgetTypecxx . . $ INDI/PropertyView#WidgetType# *begincxx . . $ INDI/PropertyView#begin(eeb57b8496a2d8e5).() const |
| 301 | { |
| 302 | return widgetcxx . . $ INDI/PropertyView#widget(eeb57b8496a2d8e5).(); |
| 303 | } |
| 304 | WidgetTypecxx . . $ INDI/PropertyView#WidgetType# *endcxx . . $ INDI/PropertyView#end(eeb57b8496a2d8e5).() const |
| 305 | { |
| 306 | return widgetcxx . . $ INDI/PropertyView#widget(eeb57b8496a2d8e5).() + countcxx . . $ INDI/PropertyView#count(455f465bc33b4cdf).(); |
| 307 | } |
| 308 | |
| 309 | WidgetTypecxx . . $ INDI/PropertyView#WidgetType# *atcxx . . $ INDI/PropertyView#at(689e131296676710).(size_t index) const |
| 310 | { |
| 311 | return widgetcxx . . $ INDI/PropertyView#widget(eeb57b8496a2d8e5).() + index; |
| 312 | } |
| 313 | public: |
| 314 | void clearcxx . . $ INDI/PropertyView#clear(49f6e7a06ebc5aa8).() |
| 315 | { |
| 316 | for(auto &p : *this) |
| 317 | { |
| 318 | p.clear(); |
| 319 | } |
| 320 | //free(widget()); // #PS: do not delete items, they may be on the stack. |
| 321 | memset(this, 0, sizeof(*this)); |
| 322 | } |
| 323 | }; |
| 324 | |
| 325 | template <typename> |
| 326 | struct WidgetViewcxx . . $ INDI/WidgetView#; |
| 327 | |
| 328 | template <> |
| 329 | struct WidgetViewcxx . . $ INDI/WidgetView#<ITextcxx . . $ IText#>: PROPERTYVIEW_BASE_ACCESScxx . . $ `libs/indidevice/property/indipropertyview.h:38:9`! ITextcxx . . $ IText# |
| 330 | { |
| 331 | using Typecxx . . $ INDI/WidgetView#Type# = ITextcxx . . $ IText#; |
| 332 | template <typename> friend struct PropertyViewcxx . . $ INDI/PropertyView#; |
| 333 | |
| 334 | public: |
| 335 | WidgetViewcxx . . $ INDI/WidgetView#WidgetView(49f6e7a06ebc5aa8).() |
| 336 | { |
| 337 | memset(this, 0, sizeof(*this)); |
| 338 | } |
| 339 | WidgetViewcxx . . $ INDI/WidgetView#WidgetView(2a561a8cebe9b449).(const WidgetViewcxx . . $ INDI/WidgetView# &other): Typecxx . . $ INDI/WidgetView#Type#(other) |
| 340 | { |
| 341 | this->textcxx . . $ _IText#text. = nullptr; |
| 342 | setTextcxx . . $ INDI/WidgetView#setText(85c52e162fed56f9).(other.textcxx . . $ _IText#text.); |
| 343 | } |
| 344 | WidgetViewcxx . . $ INDI/WidgetView#WidgetView(8d6aa4acec71a627).(WidgetViewcxx . . $ INDI/WidgetView# &&other): Typecxx . . $ INDI/WidgetView#Type#(other) |
| 345 | { |
| 346 | memset(static_cast<Typecxx . . $ INDI/WidgetView#Type#*>(&other), 0, sizeof(other)); |
| 347 | } |
| 348 | WidgetViewcxx . . $ INDI/WidgetView# &operatorcxx . . $ INDI/WidgetView#`operator=`(65154b7be92f6784).=(const WidgetViewcxx . . $ INDI/WidgetView# &other) |
| 349 | { |
| 350 | return *this =cxx . . $ INDI/WidgetView#`operator=`(752cc97e97097917). WidgetViewcxx . . $ INDI/WidgetView#(other); |
| 351 | } |
| 352 | WidgetViewcxx . . $ INDI/WidgetView# &operatorcxx . . $ INDI/WidgetView#`operator=`(752cc97e97097917).=(WidgetViewcxx . . $ INDI/WidgetView# &&other) |
| 353 | { |
| 354 | stdcxx . . $ std/::swapcxx . . $ std/swap(fd14d5ffdc2aa84d).(static_cast<Typecxx . . $ INDI/WidgetView#Type# &>(other), static_cast<Typecxx . . $ INDI/WidgetView#Type# &>(*this)); |
| 355 | return *this; |
| 356 | } |
| 357 | ~cxx . . $ INDI/WidgetView#`~WidgetView`(49f6e7a06ebc5aa8).WidgetViewcxx . . $ INDI/WidgetView#() |
| 358 | { |
| 359 | free(this->textcxx . . $ _IText#text.); |
| 360 | } |
| 361 | void clearcxx . . $ INDI/WidgetView#clear(49f6e7a06ebc5aa8).() |
| 362 | { |
| 363 | free(this->textcxx . . $ _IText#text.); |
| 364 | memset(this, 0, sizeof(*this)); |
| 365 | } |
| 366 | // bool isNull() const { return reinterpret_cast<const void*>(this) == nullptr; } |
| 367 | |
| 368 | public: // setters |
| 369 | void setParentcxx . . $ INDI/WidgetView#setParent(c4ae785439b278d0).(ITextVectorPropertycxx . . $ ITextVectorProperty# *parent) |
| 370 | { |
| 371 | this->tvpcxx . . $ _IText#tvp. = parent; |
| 372 | } |
| 373 | void setParentcxx . . $ INDI/WidgetView#setParent(e47d3a971a570b62).(PropertyViewcxx . . $ INDI/PropertyView#<Typecxx . . $ INDI/WidgetView#Type#> *parent) |
| 374 | { |
| 375 | this->tvpcxx . . $ _IText#tvp. = static_cast<ITextVectorPropertycxx . . $ ITextVectorProperty#*>(parent); |
| 376 | } |
| 377 | |
| 378 | void setNamecxx . . $ INDI/WidgetView#setName(85c52e162fed56f9).(const char *name) |
| 379 | { |
| 380 | INDIcxx . . $ INDI/::strlcpycxx . . $ INDI/strlcpy(c6c5ddc473eee0d4).(this->namecxx . . $ _IText#name., name); |
| 381 | } |
| 382 | void setNamecxx . . $ INDI/WidgetView#setName(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &name) |
| 383 | { |
| 384 | setNamecxx . . $ INDI/WidgetView#setName(85c52e162fed56f9).(name.datacxx . . $ std/__cxx11/basic_string#data(1016ee5406d91ab9).()); |
| 385 | } |
| 386 | |
| 387 | void setLabelcxx . . $ INDI/WidgetView#setLabel(85c52e162fed56f9).(const char *label) |
| 388 | { |
| 389 | INDIcxx . . $ INDI/::strlcpycxx . . $ INDI/strlcpy(c6c5ddc473eee0d4).(this->labelcxx . . $ _IText#label., label); |
| 390 | } |
| 391 | void setLabelcxx . . $ INDI/WidgetView#setLabel(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &label) |
| 392 | { |
| 393 | setLabelcxx . . $ INDI/WidgetView#setLabel(85c52e162fed56f9).(label.datacxx . . $ std/__cxx11/basic_string#data(1016ee5406d91ab9).()); |
| 394 | } |
| 395 | |
| 396 | //void setText(const char *text) { free(this->text); this->text = strndup(text, strlen(text)); } |
| 397 | void setTextcxx . . $ INDI/WidgetView#setText(7cafb6e0818eff3b).(const char *text, size_t size) |
| 398 | { |
| 399 | INDIcxx . . $ INDI/::strlcpycxx . . $ INDI/strlcpy(55abe9014c6d0e39).(this->textcxx . . $ _IText#text. = static_cast<char*>(realloc(this->textcxx . . $ _IText#text., size + 1)), text, size + 1); |
| 400 | } |
| 401 | void setTextcxx . . $ INDI/WidgetView#setText(85c52e162fed56f9).(const char *text) |
| 402 | { |
| 403 | setTextcxx . . $ INDI/WidgetView#setText(7cafb6e0818eff3b).(text, strlen(text)); |
| 404 | } |
| 405 | void setTextcxx . . $ INDI/WidgetView#setText(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &text) |
| 406 | { |
| 407 | setTextcxx . . $ INDI/WidgetView#setText(7cafb6e0818eff3b).(text.datacxx . . $ std/__cxx11/basic_string#data(1016ee5406d91ab9).(), text.sizecxx . . $ std/__cxx11/basic_string#size(48278e53df7b52a5).()); |
| 408 | } |
| 409 | |
| 410 | void setAuxcxx . . $ INDI/WidgetView#setAux(5d22bdacc48458e8).(void *user) |
| 411 | { |
| 412 | this->aux0cxx . . $ _IText#aux0. = user; |
| 413 | } |
| 414 | // don't use any other aux! |
| 415 | |
| 416 | public: //getters |
| 417 | const char *getNamecxx . . $ INDI/WidgetView#getName(a9f41ea0e82d88cf).() const |
| 418 | { |
| 419 | return this->namecxx . . $ _IText#name.; |
| 420 | } |
| 421 | const char *getLabelcxx . . $ INDI/WidgetView#getLabel(a9f41ea0e82d88cf).() const |
| 422 | { |
| 423 | return this->labelcxx . . $ _IText#label.; |
| 424 | } |
| 425 | const char *getTextcxx . . $ INDI/WidgetView#getText(a9f41ea0e82d88cf).() const |
| 426 | { |
| 427 | return this->textcxx . . $ _IText#text. ? this->textcxx . . $ _IText#text. : ""; |
| 428 | } |
| 429 | |
| 430 | void *getAuxcxx . . $ INDI/WidgetView#getAux(45a5c5ac6be858a8).() const |
| 431 | { |
| 432 | return this->aux0cxx . . $ _IText#aux0.; |
| 433 | } |
| 434 | |
| 435 | public: //tests |
| 436 | bool isNameMatchcxx . . $ INDI/WidgetView#isNameMatch(7d4bdb1abc417636).(const char *otherName) const |
| 437 | { |
| 438 | return !strcmp(getNamecxx . . $ INDI/WidgetView#getName(a9f41ea0e82d88cf).(), otherName); |
| 439 | } |
| 440 | bool isNameMatchcxx . . $ INDI/WidgetView#isNameMatch(13a55b95a0133754).(const stdcxx . . $ std/::stringcxx . . $ std/string# &otherName) const |
| 441 | { |
| 442 | return getNamecxx . . $ INDI/WidgetView#getName(a9f41ea0e82d88cf).() ==cxx . . $ std/`operator==`(3a786e8ce7e53c2c). otherName; |
| 443 | } |
| 444 | |
| 445 | bool isLabelMatchcxx . . $ INDI/WidgetView#isLabelMatch(7d4bdb1abc417636).(const char *otherLabel) const |
| 446 | { |
| 447 | return !strcmp(getLabelcxx . . $ INDI/WidgetView#getLabel(a9f41ea0e82d88cf).(), otherLabel); |
| 448 | } |
| 449 | bool isLabelMatchcxx . . $ INDI/WidgetView#isLabelMatch(13a55b95a0133754).(const stdcxx . . $ std/::stringcxx . . $ std/string# &otherLabel) const |
| 450 | { |
| 451 | return getLabelcxx . . $ INDI/WidgetView#getLabel(a9f41ea0e82d88cf).() ==cxx . . $ std/`operator==`(3a786e8ce7e53c2c). otherLabel; |
| 452 | } |
| 453 | |
| 454 | public: |
| 455 | void fillcxx . . $ INDI/WidgetView#fill(facfdab5246d4be7).(const char *name, const char *label, const char *initialText) |
| 456 | ; /* outside implementation - only driver side, see indipropertyview_driver.cpp */ |
| 457 | |
| 458 | void fillcxx . . $ INDI/WidgetView#fill(9c65d82330563d7e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &name, const stdcxx . . $ std/::stringcxx . . $ std/string# &label, const stdcxx . . $ std/::stringcxx . . $ std/string# &initialText) |
| 459 | { |
| 460 | fillcxx . . $ INDI/WidgetView#fill(facfdab5246d4be7).(name.c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).(), label.c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).(), initialText.c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 461 | } |
| 462 | }; |
| 463 | |
| 464 | template <> |
| 465 | struct WidgetViewcxx . . $ INDI/WidgetView#<INumbercxx . . $ INumber#>: PROPERTYVIEW_BASE_ACCESScxx . . $ `libs/indidevice/property/indipropertyview.h:38:9`! INumbercxx . . $ INumber# |
| 466 | { |
| 467 | using Typecxx . . $ INDI/WidgetView#Type# = INumbercxx . . $ INumber#; |
| 468 | template <typename> friend struct PropertyViewcxx . . $ INDI/PropertyView#; |
| 469 | |
| 470 | public: |
| 471 | WidgetViewcxx . . $ INDI/WidgetView#WidgetView(49f6e7a06ebc5aa8).() |
| 472 | { |
| 473 | memset(this, 0, sizeof(*this)); |
| 474 | } |
| 475 | WidgetViewcxx . . $ INDI/WidgetView#WidgetView(af90fe4d8b9b698e).(const WidgetViewcxx . . $ INDI/WidgetView# &other): Typecxx . . $ INDI/WidgetView#Type#(other) { } |
| 476 | WidgetViewcxx . . $ INDI/WidgetView#WidgetView(7dd0b5fc721b7d85).(WidgetViewcxx . . $ INDI/WidgetView# &&other): Typecxx . . $ INDI/WidgetView#Type#(other) |
| 477 | { |
| 478 | memset(static_cast<Typecxx . . $ INDI/WidgetView#Type#*>(&other), 0, sizeof(other)); |
| 479 | } |
| 480 | WidgetViewcxx . . $ INDI/WidgetView# &operatorcxx . . $ INDI/WidgetView#`operator=`(cf7fd2dc8baf1258).=(const WidgetViewcxx . . $ INDI/WidgetView# &other) |
| 481 | { |
| 482 | return *this =cxx . . $ INDI/WidgetView#`operator=`(bfbbafc1298c0458). WidgetViewcxx . . $ INDI/WidgetView#(other); |
| 483 | } |
| 484 | WidgetViewcxx . . $ INDI/WidgetView# &operatorcxx . . $ INDI/WidgetView#`operator=`(bfbbafc1298c0458).=(WidgetViewcxx . . $ INDI/WidgetView# &&other) |
| 485 | { |
| 486 | stdcxx . . $ std/::swapcxx . . $ std/swap(fd14d5ffdc2aa84d).(static_cast<Typecxx . . $ INDI/WidgetView#Type# &>(other), static_cast<Typecxx . . $ INDI/WidgetView#Type# &>(*this)); |
| 487 | return *this; |
| 488 | } |
| 489 | ~cxx . . $ INDI/WidgetView#`~WidgetView`(49f6e7a06ebc5aa8).WidgetViewcxx . . $ INDI/WidgetView#() { } |
| 490 | void clearcxx . . $ INDI/WidgetView#clear(49f6e7a06ebc5aa8).() |
| 491 | { |
| 492 | memset(this, 0, sizeof(*this)); |
| 493 | } |
| 494 | // bool isNull() const { return reinterpret_cast<const void*>(this) == nullptr; } |
| 495 | |
| 496 | public: // setters |
| 497 | void setParentcxx . . $ INDI/WidgetView#setParent(cbe224b2eb909406).(INumberVectorPropertycxx . . $ INumberVectorProperty# *parent) |
| 498 | { |
| 499 | this->nvpcxx . . $ _INumber#nvp. = parent; |
| 500 | } |
| 501 | void setParentcxx . . $ INDI/WidgetView#setParent(c2ff22d72e455b11).(PropertyViewcxx . . $ INDI/PropertyView#<Typecxx . . $ INDI/WidgetView#Type#> *parent) |
| 502 | { |
| 503 | this->nvpcxx . . $ _INumber#nvp. = static_cast<INumberVectorPropertycxx . . $ INumberVectorProperty#*>(parent); |
| 504 | } |
| 505 | |
| 506 | void setNamecxx . . $ INDI/WidgetView#setName(85c52e162fed56f9).(const char *name) |
| 507 | { |
| 508 | INDIcxx . . $ INDI/::strlcpycxx . . $ INDI/strlcpy(c6c5ddc473eee0d4).(this->namecxx . . $ _INumber#name., name); |
| 509 | } |
| 510 | void setNamecxx . . $ INDI/WidgetView#setName(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &name) |
| 511 | { |
| 512 | setNamecxx . . $ INDI/WidgetView#setName(85c52e162fed56f9).(name.datacxx . . $ std/__cxx11/basic_string#data(1016ee5406d91ab9).()); |
| 513 | } |
| 514 | |
| 515 | void setLabelcxx . . $ INDI/WidgetView#setLabel(85c52e162fed56f9).(const char *label) |
| 516 | { |
| 517 | INDIcxx . . $ INDI/::strlcpycxx . . $ INDI/strlcpy(c6c5ddc473eee0d4).(this->labelcxx . . $ _INumber#label., label); |
| 518 | } |
| 519 | void setLabelcxx . . $ INDI/WidgetView#setLabel(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &label) |
| 520 | { |
| 521 | setLabelcxx . . $ INDI/WidgetView#setLabel(85c52e162fed56f9).(label.datacxx . . $ std/__cxx11/basic_string#data(1016ee5406d91ab9).()); |
| 522 | } |
| 523 | |
| 524 | void setFormatcxx . . $ INDI/WidgetView#setFormat(85c52e162fed56f9).(const char *format) |
| 525 | { |
| 526 | INDIcxx . . $ INDI/::strlcpycxx . . $ INDI/strlcpy(c6c5ddc473eee0d4).(this->formatcxx . . $ _INumber#format., format); |
| 527 | } |
| 528 | void setFormatcxx . . $ INDI/WidgetView#setFormat(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &format) |
| 529 | { |
| 530 | setLabelcxx . . $ INDI/WidgetView#setLabel(85c52e162fed56f9).(format.datacxx . . $ std/__cxx11/basic_string#data(1016ee5406d91ab9).()); |
| 531 | } |
| 532 | |
| 533 | void setMincxx . . $ INDI/WidgetView#setMin(ba8836b59fb42830).(double min) |
| 534 | { |
| 535 | this->mincxx . . $ _INumber#min. = min; |
| 536 | } |
| 537 | void setMaxcxx . . $ INDI/WidgetView#setMax(ba8836b59fb42830).(double max) |
| 538 | { |
| 539 | this->maxcxx . . $ _INumber#max. = max; |
| 540 | } |
| 541 | void setMinMaxcxx . . $ INDI/WidgetView#setMinMax(bc12c9ec15586e6a).(double min, double max) |
| 542 | { |
| 543 | setMincxx . . $ INDI/WidgetView#setMin(ba8836b59fb42830).(min); |
| 544 | setMaxcxx . . $ INDI/WidgetView#setMax(ba8836b59fb42830).(max); |
| 545 | } |
| 546 | void setStepcxx . . $ INDI/WidgetView#setStep(ba8836b59fb42830).(double step) |
| 547 | { |
| 548 | this->stepcxx . . $ _INumber#step. = step; |
| 549 | } |
| 550 | void setValuecxx . . $ INDI/WidgetView#setValue(ba8836b59fb42830).(double value) |
| 551 | { |
| 552 | this->valuecxx . . $ _INumber#value. = value; |
| 553 | } |
| 554 | |
| 555 | void setAuxcxx . . $ INDI/WidgetView#setAux(5d22bdacc48458e8).(void *user) |
| 556 | { |
| 557 | this->aux0cxx . . $ _INumber#aux0. = user; |
| 558 | } |
| 559 | // don't use any other aux! |
| 560 | |
| 561 | public: //getters |
| 562 | const char *getNamecxx . . $ INDI/WidgetView#getName(a9f41ea0e82d88cf).() const |
| 563 | { |
| 564 | return this->namecxx . . $ _INumber#name.; |
| 565 | } |
| 566 | const char *getLabelcxx . . $ INDI/WidgetView#getLabel(a9f41ea0e82d88cf).() const |
| 567 | { |
| 568 | return this->labelcxx . . $ _INumber#label.; |
| 569 | } |
| 570 | const char *getFormatcxx . . $ INDI/WidgetView#getFormat(a9f41ea0e82d88cf).() const |
| 571 | { |
| 572 | return this->formatcxx . . $ _INumber#format.; |
| 573 | } |
| 574 | |
| 575 | double getMincxx . . $ INDI/WidgetView#getMin(21b6c25e127938e2).() const |
| 576 | { |
| 577 | return this->mincxx . . $ _INumber#min.; |
| 578 | } |
| 579 | double getMaxcxx . . $ INDI/WidgetView#getMax(21b6c25e127938e2).() const |
| 580 | { |
| 581 | return this->maxcxx . . $ _INumber#max.; |
| 582 | } |
| 583 | double getStepcxx . . $ INDI/WidgetView#getStep(21b6c25e127938e2).() const |
| 584 | { |
| 585 | return this->stepcxx . . $ _INumber#step.; |
| 586 | } |
| 587 | double getValuecxx . . $ INDI/WidgetView#getValue(21b6c25e127938e2).() const |
| 588 | { |
| 589 | return this->valuecxx . . $ _INumber#value.; |
| 590 | } |
| 591 | |
| 592 | void *getAuxcxx . . $ INDI/WidgetView#getAux(45a5c5ac6be858a8).() const |
| 593 | { |
| 594 | return this->aux0cxx . . $ _INumber#aux0.; |
| 595 | } |
| 596 | |
| 597 | public: //tests |
| 598 | bool isNameMatchcxx . . $ INDI/WidgetView#isNameMatch(7d4bdb1abc417636).(const char *otherName) const |
| 599 | { |
| 600 | return !strcmp(getNamecxx . . $ INDI/WidgetView#getName(a9f41ea0e82d88cf).(), otherName); |
| 601 | } |
| 602 | bool isNameMatchcxx . . $ INDI/WidgetView#isNameMatch(13a55b95a0133754).(const stdcxx . . $ std/::stringcxx . . $ std/string# &otherName) const |
| 603 | { |
| 604 | return getNamecxx . . $ INDI/WidgetView#getName(a9f41ea0e82d88cf).() ==cxx . . $ std/`operator==`(3a786e8ce7e53c2c). otherName; |
| 605 | } |
| 606 | |
| 607 | bool isLabelMatchcxx . . $ INDI/WidgetView#isLabelMatch(7d4bdb1abc417636).(const char *otherLabel) const |
| 608 | { |
| 609 | return !strcmp(getLabelcxx . . $ INDI/WidgetView#getLabel(a9f41ea0e82d88cf).(), otherLabel); |
| 610 | } |
| 611 | bool isLabelMatchcxx . . $ INDI/WidgetView#isLabelMatch(13a55b95a0133754).(const stdcxx . . $ std/::stringcxx . . $ std/string# &otherLabel) const |
| 612 | { |
| 613 | return getLabelcxx . . $ INDI/WidgetView#getLabel(a9f41ea0e82d88cf).() ==cxx . . $ std/`operator==`(3a786e8ce7e53c2c). otherLabel; |
| 614 | } |
| 615 | |
| 616 | public: |
| 617 | void fillcxx . . $ INDI/WidgetView#fill(cbc6accffbe24b85).(const char *name, const char *label, const char *format, |
| 618 | double min, double max, double step, double value) |
| 619 | ; /* outside implementation - only driver side, see indipropertyview_driver.cpp */ |
| 620 | |
| 621 | void fillcxx . . $ INDI/WidgetView#fill(e55fbdeb626fc057).(const stdcxx . . $ std/::stringcxx . . $ std/string# &name, const stdcxx . . $ std/::stringcxx . . $ std/string# &label, const stdcxx . . $ std/::stringcxx . . $ std/string# &format, |
| 622 | double min, double max, double step, double value) |
| 623 | { |
| 624 | fillcxx . . $ INDI/WidgetView#fill(cbc6accffbe24b85).(name.c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).(), label.c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).(), format.c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).(), min, max, step, value); |
| 625 | } |
| 626 | }; |
| 627 | |
| 628 | template <> |
| 629 | struct WidgetViewcxx . . $ INDI/WidgetView#<ISwitchcxx . . $ ISwitch#>: PROPERTYVIEW_BASE_ACCESScxx . . $ `libs/indidevice/property/indipropertyview.h:38:9`! ISwitchcxx . . $ ISwitch# |
| 630 | { |
| 631 | using Typecxx . . $ INDI/WidgetView#Type# = ISwitchcxx . . $ ISwitch#; |
| 632 | template <typename> friend struct PropertyViewcxx . . $ INDI/PropertyView#; |
| 633 | |
| 634 | public: |
| 635 | WidgetViewcxx . . $ INDI/WidgetView#WidgetView(49f6e7a06ebc5aa8).() |
| 636 | { |
| 637 | memset(this, 0, sizeof(*this)); |
| 638 | } |
| 639 | WidgetViewcxx . . $ INDI/WidgetView#WidgetView(3f6054377a306062).(const WidgetViewcxx . . $ INDI/WidgetView# &other): Typecxx . . $ INDI/WidgetView#Type#(other) { } |
| 640 | WidgetViewcxx . . $ INDI/WidgetView#WidgetView(49728ec5f224169f).(WidgetViewcxx . . $ INDI/WidgetView# &&other): Typecxx . . $ INDI/WidgetView#Type#(other) |
| 641 | { |
| 642 | memset(static_cast<Typecxx . . $ INDI/WidgetView#Type#*>(&other), 0, sizeof(other)); |
| 643 | } |
| 644 | WidgetViewcxx . . $ INDI/WidgetView# &operatorcxx . . $ INDI/WidgetView#`operator=`(bc1b0b442a1607c7).=(const WidgetViewcxx . . $ INDI/WidgetView# &other) |
| 645 | { |
| 646 | return *this =cxx . . $ INDI/WidgetView#`operator=`(1925106f3876f9c6). WidgetViewcxx . . $ INDI/WidgetView#(other); |
| 647 | } |
| 648 | WidgetViewcxx . . $ INDI/WidgetView# &operatorcxx . . $ INDI/WidgetView#`operator=`(1925106f3876f9c6).=(WidgetViewcxx . . $ INDI/WidgetView# &&other) |
| 649 | { |
| 650 | stdcxx . . $ std/::swapcxx . . $ std/swap(fd14d5ffdc2aa84d).(static_cast<Typecxx . . $ INDI/WidgetView#Type# &>(other), static_cast<Typecxx . . $ INDI/WidgetView#Type# &>(*this)); |
| 651 | return *this; |
| 652 | } |
| 653 | ~cxx . . $ INDI/WidgetView#`~WidgetView`(49f6e7a06ebc5aa8).WidgetViewcxx . . $ INDI/WidgetView#() { } |
| 654 | void clearcxx . . $ INDI/WidgetView#clear(49f6e7a06ebc5aa8).() |
| 655 | { |
| 656 | memset(this, 0, sizeof(*this)); |
| 657 | } |
| 658 | // bool isNull() const { return reinterpret_cast<const void*>(this) == nullptr; } |
| 659 | |
| 660 | public: // setters |
| 661 | void setParentcxx . . $ INDI/WidgetView#setParent(937b9cd86f7e998c).(ISwitchVectorPropertycxx . . $ ISwitchVectorProperty# *parent) |
| 662 | { |
| 663 | this->svpcxx . . $ _ISwitch#svp. = parent; |
| 664 | } |
| 665 | void setParentcxx . . $ INDI/WidgetView#setParent(7b231ffe52fe2f3a).(PropertyViewcxx . . $ INDI/PropertyView#<Typecxx . . $ INDI/WidgetView#Type#> *parent) |
| 666 | { |
| 667 | this->svpcxx . . $ _ISwitch#svp. = static_cast<ISwitchVectorPropertycxx . . $ ISwitchVectorProperty#*>(parent); |
| 668 | } |
| 669 | |
| 670 | void setNamecxx . . $ INDI/WidgetView#setName(85c52e162fed56f9).(const char *name) |
| 671 | { |
| 672 | INDIcxx . . $ INDI/::strlcpycxx . . $ INDI/strlcpy(c6c5ddc473eee0d4).(this->namecxx . . $ _ISwitch#name., name); |
| 673 | } |
| 674 | void setNamecxx . . $ INDI/WidgetView#setName(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &name) |
| 675 | { |
| 676 | setNamecxx . . $ INDI/WidgetView#setName(85c52e162fed56f9).(name.datacxx . . $ std/__cxx11/basic_string#data(1016ee5406d91ab9).()); |
| 677 | } |
| 678 | |
| 679 | void setLabelcxx . . $ INDI/WidgetView#setLabel(85c52e162fed56f9).(const char *label) |
| 680 | { |
| 681 | INDIcxx . . $ INDI/::strlcpycxx . . $ INDI/strlcpy(c6c5ddc473eee0d4).(this->labelcxx . . $ _ISwitch#label., label); |
| 682 | } |
| 683 | void setLabelcxx . . $ INDI/WidgetView#setLabel(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &label) |
| 684 | { |
| 685 | setLabelcxx . . $ INDI/WidgetView#setLabel(85c52e162fed56f9).(label.datacxx . . $ std/__cxx11/basic_string#data(1016ee5406d91ab9).()); |
| 686 | } |
| 687 | |
| 688 | void setStatecxx . . $ INDI/WidgetView#setState(5759b1e51739f412).(const ISStatecxx . . $ ISState# &state) |
| 689 | { |
| 690 | this->scxx . . $ _ISwitch#s. = state; |
| 691 | } |
| 692 | bool setStatecxx . . $ INDI/WidgetView#setState(7c222eea44a24d43).(const stdcxx . . $ std/::stringcxx . . $ std/string# &state) |
| 693 | { |
| 694 | return crackISState(state.datacxx . . $ std/__cxx11/basic_string#data(1016ee5406d91ab9).(), &this->scxx . . $ _ISwitch#s.) == 0; |
| 695 | } |
| 696 | |
| 697 | void setAuxcxx . . $ INDI/WidgetView#setAux(5d22bdacc48458e8).(void *user) |
| 698 | { |
| 699 | this->auxcxx . . $ _ISwitch#aux. = user; |
| 700 | } |
| 701 | // don't use any other aux! |
| 702 | |
| 703 | public: //getters |
| 704 | const char *getNamecxx . . $ INDI/WidgetView#getName(a9f41ea0e82d88cf).() const |
| 705 | { |
| 706 | return this->namecxx . . $ _ISwitch#name.; |
| 707 | } |
| 708 | const char *getLabelcxx . . $ INDI/WidgetView#getLabel(a9f41ea0e82d88cf).() const |
| 709 | { |
| 710 | return this->labelcxx . . $ _ISwitch#label.; |
| 711 | } |
| 712 | |
| 713 | ISStatecxx . . $ ISState# getStatecxx . . $ INDI/WidgetView#getState(da303a2a3552bd98).() const |
| 714 | { |
| 715 | return this->scxx . . $ _ISwitch#s.; |
| 716 | } |
| 717 | const char *getStateAsStringcxx . . $ INDI/WidgetView#getStateAsString(a9f41ea0e82d88cf).() const |
| 718 | { |
| 719 | return sstateStr(getStatecxx . . $ INDI/WidgetView#getState(da303a2a3552bd98).()); |
| 720 | } |
| 721 | |
| 722 | void *getAuxcxx . . $ INDI/WidgetView#getAux(45a5c5ac6be858a8).() const |
| 723 | { |
| 724 | return this->auxcxx . . $ _ISwitch#aux.; |
| 725 | } |
| 726 | |
| 727 | |
| 728 | public: //tests |
| 729 | bool isNameMatchcxx . . $ INDI/WidgetView#isNameMatch(7d4bdb1abc417636).(const char *otherName) const |
| 730 | { |
| 731 | return !strcmp(getNamecxx . . $ INDI/WidgetView#getName(a9f41ea0e82d88cf).(), otherName); |
| 732 | } |
| 733 | bool isNameMatchcxx . . $ INDI/WidgetView#isNameMatch(13a55b95a0133754).(const stdcxx . . $ std/::stringcxx . . $ std/string# &otherName) const |
| 734 | { |
| 735 | return getNamecxx . . $ INDI/WidgetView#getName(a9f41ea0e82d88cf).() ==cxx . . $ std/`operator==`(3a786e8ce7e53c2c). otherName; |
| 736 | } |
| 737 | |
| 738 | bool isLabelMatchcxx . . $ INDI/WidgetView#isLabelMatch(7d4bdb1abc417636).(const char *otherLabel) const |
| 739 | { |
| 740 | return !strcmp(getLabelcxx . . $ INDI/WidgetView#getLabel(a9f41ea0e82d88cf).(), otherLabel); |
| 741 | } |
| 742 | bool isLabelMatchcxx . . $ INDI/WidgetView#isLabelMatch(13a55b95a0133754).(const stdcxx . . $ std/::stringcxx . . $ std/string# &otherLabel) const |
| 743 | { |
| 744 | return getLabelcxx . . $ INDI/WidgetView#getLabel(a9f41ea0e82d88cf).() ==cxx . . $ std/`operator==`(3a786e8ce7e53c2c). otherLabel; |
| 745 | } |
| 746 | |
| 747 | public: |
| 748 | void fillcxx . . $ INDI/WidgetView#fill(f17f2c53fb832aee).(const char *name, const char *label, ISStatecxx . . $ ISState# state = ISS_OFFcxx . . $ ISS_OFF.) |
| 749 | ; /* outside implementation - only driver side, see indipropertyview_driver.cpp */ |
| 750 | |
| 751 | void fillcxx . . $ INDI/WidgetView#fill(73c6f4489c8a7e55).(const stdcxx . . $ std/::stringcxx . . $ std/string# &name, const stdcxx . . $ std/::stringcxx . . $ std/string# &label, ISStatecxx . . $ ISState# state = ISS_OFFcxx . . $ ISS_OFF.) |
| 752 | { |
| 753 | fillcxx . . $ INDI/WidgetView#fill(f17f2c53fb832aee).(name.c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).(), label.c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).(), state); |
| 754 | } |
| 755 | }; |
| 756 | |
| 757 | template <> |
| 758 | struct WidgetViewcxx . . $ INDI/WidgetView#<ILightcxx . . $ ILight#>: PROPERTYVIEW_BASE_ACCESScxx . . $ `libs/indidevice/property/indipropertyview.h:38:9`! ILightcxx . . $ ILight# |
| 759 | { |
| 760 | using Typecxx . . $ INDI/WidgetView#Type# = ILightcxx . . $ ILight#; |
| 761 | template <typename> friend struct PropertyViewcxx . . $ INDI/PropertyView#; |
| 762 | |
| 763 | public: |
| 764 | WidgetViewcxx . . $ INDI/WidgetView#WidgetView(49f6e7a06ebc5aa8).() |
| 765 | { |
| 766 | memset(this, 0, sizeof(*this)); |
| 767 | } |
| 768 | WidgetViewcxx . . $ INDI/WidgetView#WidgetView(f4b794ab22f5706c).(const WidgetViewcxx . . $ INDI/WidgetView# &other): Typecxx . . $ INDI/WidgetView#Type#(other) { } |
| 769 | WidgetViewcxx . . $ INDI/WidgetView#WidgetView(d84b2dc2d2215263).(WidgetViewcxx . . $ INDI/WidgetView# &&other): Typecxx . . $ INDI/WidgetView#Type#(other) |
| 770 | { |
| 771 | memset(static_cast<Typecxx . . $ INDI/WidgetView#Type#*>(&other), 0, sizeof(other)); |
| 772 | } |
| 773 | WidgetViewcxx . . $ INDI/WidgetView# &operatorcxx . . $ INDI/WidgetView#`operator=`(4fa1c71828862948).=(const WidgetViewcxx . . $ INDI/WidgetView# &other) |
| 774 | { |
| 775 | return *this =cxx . . $ INDI/WidgetView#`operator=`(7eee0a5ab0505fc0). WidgetViewcxx . . $ INDI/WidgetView#(other); |
| 776 | } |
| 777 | WidgetViewcxx . . $ INDI/WidgetView# &operatorcxx . . $ INDI/WidgetView#`operator=`(7eee0a5ab0505fc0).=(WidgetViewcxx . . $ INDI/WidgetView# &&other) |
| 778 | { |
| 779 | stdcxx . . $ std/::swapcxx . . $ std/swap(fd14d5ffdc2aa84d).(static_cast<Typecxx . . $ INDI/WidgetView#Type# &>(other), static_cast<Typecxx . . $ INDI/WidgetView#Type# &>(*this)); |
| 780 | return *this; |
| 781 | } |
| 782 | ~cxx . . $ INDI/WidgetView#`~WidgetView`(49f6e7a06ebc5aa8).WidgetViewcxx . . $ INDI/WidgetView#() { } |
| 783 | void clearcxx . . $ INDI/WidgetView#clear(49f6e7a06ebc5aa8).() |
| 784 | { |
| 785 | memset(this, 0, sizeof(*this)); |
| 786 | } |
| 787 | // bool isNull() const { return reinterpret_cast<const void*>(this) == nullptr; } |
| 788 | |
| 789 | public: // setters |
| 790 | void setParentcxx . . $ INDI/WidgetView#setParent(8df8cd29d71f277a).(ILightVectorPropertycxx . . $ ILightVectorProperty# *parent) |
| 791 | { |
| 792 | this->lvpcxx . . $ _ILight#lvp. = parent; |
| 793 | } |
| 794 | void setParentcxx . . $ INDI/WidgetView#setParent(e4576d9c9e83fc8b).(PropertyViewcxx . . $ INDI/PropertyView#<Typecxx . . $ INDI/WidgetView#Type#> *parent) |
| 795 | { |
| 796 | this->lvpcxx . . $ _ILight#lvp. = static_cast<ILightVectorPropertycxx . . $ ILightVectorProperty#*>(parent); |
| 797 | } |
| 798 | |
| 799 | void setNamecxx . . $ INDI/WidgetView#setName(85c52e162fed56f9).(const char *name) |
| 800 | { |
| 801 | INDIcxx . . $ INDI/::strlcpycxx . . $ INDI/strlcpy(c6c5ddc473eee0d4).(this->namecxx . . $ _ILight#name., name); |
| 802 | } |
| 803 | void setNamecxx . . $ INDI/WidgetView#setName(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &name) |
| 804 | { |
| 805 | setNamecxx . . $ INDI/WidgetView#setName(85c52e162fed56f9).(name.datacxx . . $ std/__cxx11/basic_string#data(1016ee5406d91ab9).()); |
| 806 | } |
| 807 | |
| 808 | void setLabelcxx . . $ INDI/WidgetView#setLabel(85c52e162fed56f9).(const char *label) |
| 809 | { |
| 810 | INDIcxx . . $ INDI/::strlcpycxx . . $ INDI/strlcpy(c6c5ddc473eee0d4).(this->labelcxx . . $ _ILight#label., label); |
| 811 | } |
| 812 | void setLabelcxx . . $ INDI/WidgetView#setLabel(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &label) |
| 813 | { |
| 814 | setLabelcxx . . $ INDI/WidgetView#setLabel(85c52e162fed56f9).(label.datacxx . . $ std/__cxx11/basic_string#data(1016ee5406d91ab9).()); |
| 815 | } |
| 816 | |
| 817 | void setStatecxx . . $ INDI/WidgetView#setState(9d9844b2636f61a3).(const IPStatecxx . . $ IPState# &state) |
| 818 | { |
| 819 | this->scxx . . $ _ILight#s. = state; |
| 820 | } |
| 821 | bool setStatecxx . . $ INDI/WidgetView#setState(7c222eea44a24d43).(const stdcxx . . $ std/::stringcxx . . $ std/string# &state) |
| 822 | { |
| 823 | return crackIPState(state.datacxx . . $ std/__cxx11/basic_string#data(1016ee5406d91ab9).(), &this->scxx . . $ _ILight#s.) == 0; |
| 824 | } |
| 825 | |
| 826 | void setAuxcxx . . $ INDI/WidgetView#setAux(5d22bdacc48458e8).(void *user) |
| 827 | { |
| 828 | this->auxcxx . . $ _ILight#aux. = user; |
| 829 | } |
| 830 | // don't use any other aux! |
| 831 | |
| 832 | public: //getters |
| 833 | const char *getNamecxx . . $ INDI/WidgetView#getName(a9f41ea0e82d88cf).() const |
| 834 | { |
| 835 | return this->namecxx . . $ _ILight#name.; |
| 836 | } |
| 837 | const char *getLabelcxx . . $ INDI/WidgetView#getLabel(a9f41ea0e82d88cf).() const |
| 838 | { |
| 839 | return this->labelcxx . . $ _ILight#label.; |
| 840 | } |
| 841 | |
| 842 | IPStatecxx . . $ IPState# getStatecxx . . $ INDI/WidgetView#getState(4693a3a3becca828).() const |
| 843 | { |
| 844 | return this->scxx . . $ _ILight#s.; |
| 845 | } |
| 846 | const char *getStateAsStringcxx . . $ INDI/WidgetView#getStateAsString(a9f41ea0e82d88cf).() const |
| 847 | { |
| 848 | return pstateStr(getStatecxx . . $ INDI/WidgetView#getState(4693a3a3becca828).()); |
| 849 | } |
| 850 | |
| 851 | void *getAuxcxx . . $ INDI/WidgetView#getAux(45a5c5ac6be858a8).() const |
| 852 | { |
| 853 | return this->auxcxx . . $ _ILight#aux.; |
| 854 | } |
| 855 | |
| 856 | |
| 857 | public: //tests |
| 858 | bool isNameMatchcxx . . $ INDI/WidgetView#isNameMatch(7d4bdb1abc417636).(const char *otherName) const |
| 859 | { |
| 860 | return !strcmp(getNamecxx . . $ INDI/WidgetView#getName(a9f41ea0e82d88cf).(), otherName); |
| 861 | } |
| 862 | bool isNameMatchcxx . . $ INDI/WidgetView#isNameMatch(13a55b95a0133754).(const stdcxx . . $ std/::stringcxx . . $ std/string# &otherName) const |
| 863 | { |
| 864 | return getNamecxx . . $ INDI/WidgetView#getName(a9f41ea0e82d88cf).() ==cxx . . $ std/`operator==`(3a786e8ce7e53c2c). otherName; |
| 865 | } |
| 866 | |
| 867 | bool isLabelMatchcxx . . $ INDI/WidgetView#isLabelMatch(7d4bdb1abc417636).(const char *otherLabel) const |
| 868 | { |
| 869 | return !strcmp(getLabelcxx . . $ INDI/WidgetView#getLabel(a9f41ea0e82d88cf).(), otherLabel); |
| 870 | } |
| 871 | bool isLabelMatchcxx . . $ INDI/WidgetView#isLabelMatch(13a55b95a0133754).(const stdcxx . . $ std/::stringcxx . . $ std/string# &otherLabel) const |
| 872 | { |
| 873 | return getLabelcxx . . $ INDI/WidgetView#getLabel(a9f41ea0e82d88cf).() ==cxx . . $ std/`operator==`(3a786e8ce7e53c2c). otherLabel; |
| 874 | } |
| 875 | |
| 876 | public: |
| 877 | void fillcxx . . $ INDI/WidgetView#fill(a7c589e055fec437).(const char *name, const char *label, IPStatecxx . . $ IPState# state = IPS_OKcxx . . $ IPS_OK.) |
| 878 | ; /* outside implementation - only driver side, see indipropertyview_driver.cpp */ |
| 879 | |
| 880 | void fillcxx . . $ INDI/WidgetView#fill(83bf817b8ba0e36f).(const stdcxx . . $ std/::stringcxx . . $ std/string# &name, const stdcxx . . $ std/::stringcxx . . $ std/string# &&label, IPStatecxx . . $ IPState# state = IPS_OKcxx . . $ IPS_OK.) |
| 881 | { |
| 882 | fillcxx . . $ INDI/WidgetView#fill(a7c589e055fec437).(name.c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).(), label.c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).(), state); |
| 883 | } |
| 884 | }; |
| 885 | |
| 886 | template <> |
| 887 | struct WidgetViewcxx . . $ INDI/WidgetView#<IBLOBcxx . . $ IBLOB#>: PROPERTYVIEW_BASE_ACCESScxx . . $ `libs/indidevice/property/indipropertyview.h:38:9`! IBLOBcxx . . $ IBLOB# |
| 888 | { |
| 889 | using Typecxx . . $ INDI/WidgetView#Type# = IBLOBcxx . . $ IBLOB#; |
| 890 | template <typename> friend struct PropertyViewcxx . . $ INDI/PropertyView#; |
| 891 | |
| 892 | public: |
| 893 | WidgetViewcxx . . $ INDI/WidgetView#WidgetView(49f6e7a06ebc5aa8).() |
| 894 | { |
| 895 | memset(this, 0, sizeof(*this)); |
| 896 | } |
| 897 | WidgetViewcxx . . $ INDI/WidgetView#WidgetView(2e89a544eb585058).(const WidgetViewcxx . . $ INDI/WidgetView# &other): Typecxx . . $ INDI/WidgetView#Type#(other) { } |
| 898 | WidgetViewcxx . . $ INDI/WidgetView#WidgetView(c39a81e866de941a).(WidgetViewcxx . . $ INDI/WidgetView# &&other): Typecxx . . $ INDI/WidgetView#Type#(other) |
| 899 | { |
| 900 | memset(static_cast<Typecxx . . $ INDI/WidgetView#Type#*>(&other), 0, sizeof(other)); |
| 901 | } |
| 902 | WidgetViewcxx . . $ INDI/WidgetView# &operatorcxx . . $ INDI/WidgetView#`operator=`(6837c2b802226bc6).=(const WidgetViewcxx . . $ INDI/WidgetView# &other) |
| 903 | { |
| 904 | return *this =cxx . . $ INDI/WidgetView#`operator=`(d0291108b22c414e). WidgetViewcxx . . $ INDI/WidgetView#(other); |
| 905 | } |
| 906 | WidgetViewcxx . . $ INDI/WidgetView# &operatorcxx . . $ INDI/WidgetView#`operator=`(d0291108b22c414e).=(WidgetViewcxx . . $ INDI/WidgetView# &&other) |
| 907 | { |
| 908 | stdcxx . . $ std/::swapcxx . . $ std/swap(fd14d5ffdc2aa84d).(static_cast<Typecxx . . $ INDI/WidgetView#Type# &>(other), static_cast<Typecxx . . $ INDI/WidgetView#Type# &>(*this)); |
| 909 | return *this; |
| 910 | } |
| 911 | ~cxx . . $ INDI/WidgetView#`~WidgetView`(49f6e7a06ebc5aa8).WidgetViewcxx . . $ INDI/WidgetView#() { /* free(this->blob); */ } |
| 912 | void clearcxx . . $ INDI/WidgetView#clear(49f6e7a06ebc5aa8).() |
| 913 | { |
| 914 | /* free(this->blob); */ memset(this, 0, sizeof(*this)); |
| 915 | } |
| 916 | // bool isNull() const { return reinterpret_cast<const void*>(this) == nullptr; } |
| 917 | |
| 918 | public: // setters |
| 919 | void setParentcxx . . $ INDI/WidgetView#setParent(158ea0778754bb38).(IBLOBVectorPropertycxx . . $ IBLOBVectorProperty# *parent) |
| 920 | { |
| 921 | this->bvpcxx . . $ _IBLOB#bvp. = parent; |
| 922 | } |
| 923 | void setParentcxx . . $ INDI/WidgetView#setParent(28d88538192f8361).(PropertyViewcxx . . $ INDI/PropertyView#<Typecxx . . $ INDI/WidgetView#Type#> *parent) |
| 924 | { |
| 925 | this->bvpcxx . . $ _IBLOB#bvp. = static_cast<IBLOBVectorPropertycxx . . $ IBLOBVectorProperty#*>(parent); |
| 926 | } |
| 927 | |
| 928 | void setNamecxx . . $ INDI/WidgetView#setName(85c52e162fed56f9).(const char *name) |
| 929 | { |
| 930 | INDIcxx . . $ INDI/::strlcpycxx . . $ INDI/strlcpy(c6c5ddc473eee0d4).(this->namecxx . . $ _IBLOB#name., name); |
| 931 | } |
| 932 | void setNamecxx . . $ INDI/WidgetView#setName(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &name) |
| 933 | { |
| 934 | setNamecxx . . $ INDI/WidgetView#setName(85c52e162fed56f9).(name.datacxx . . $ std/__cxx11/basic_string#data(1016ee5406d91ab9).()); |
| 935 | } |
| 936 | |
| 937 | void setLabelcxx . . $ INDI/WidgetView#setLabel(85c52e162fed56f9).(const char *label) |
| 938 | { |
| 939 | INDIcxx . . $ INDI/::strlcpycxx . . $ INDI/strlcpy(c6c5ddc473eee0d4).(this->labelcxx . . $ _IBLOB#label., label); |
| 940 | } |
| 941 | void setLabelcxx . . $ INDI/WidgetView#setLabel(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &label) |
| 942 | { |
| 943 | setLabelcxx . . $ INDI/WidgetView#setLabel(85c52e162fed56f9).(label.datacxx . . $ std/__cxx11/basic_string#data(1016ee5406d91ab9).()); |
| 944 | } |
| 945 | |
| 946 | void setFormatcxx . . $ INDI/WidgetView#setFormat(85c52e162fed56f9).(const char *format) |
| 947 | { |
| 948 | INDIcxx . . $ INDI/::strlcpycxx . . $ INDI/strlcpy(c6c5ddc473eee0d4).(this->formatcxx . . $ _IBLOB#format., format); |
| 949 | } |
| 950 | void setFormatcxx . . $ INDI/WidgetView#setFormat(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &format) |
| 951 | { |
| 952 | setLabelcxx . . $ INDI/WidgetView#setLabel(85c52e162fed56f9).(format.datacxx . . $ std/__cxx11/basic_string#data(1016ee5406d91ab9).()); |
| 953 | } |
| 954 | |
| 955 | void setBlobcxx . . $ INDI/WidgetView#setBlob(5d22bdacc48458e8).(void *blob) |
| 956 | { |
| 957 | this->blobcxx . . $ _IBLOB#blob. = blob; |
| 958 | } |
| 959 | void setBlobLencxx . . $ INDI/WidgetView#setBlobLen(d4f767463ce0a6b3).(int size) |
| 960 | { |
| 961 | this->bloblencxx . . $ _IBLOB#bloblen. = size; |
| 962 | } |
| 963 | void setSizecxx . . $ INDI/WidgetView#setSize(d4f767463ce0a6b3).(int size) |
| 964 | { |
| 965 | this->sizecxx . . $ _IBLOB#size. = size; |
| 966 | } |
| 967 | |
| 968 | void setAuxcxx . . $ INDI/WidgetView#setAux(5d22bdacc48458e8).(void *user) |
| 969 | { |
| 970 | this->aux0cxx . . $ _IBLOB#aux0. = user; |
| 971 | } |
| 972 | // don't use any other aux! |
| 973 | |
| 974 | public: //getters |
| 975 | const char *getNamecxx . . $ INDI/WidgetView#getName(a9f41ea0e82d88cf).() const |
| 976 | { |
| 977 | return this->namecxx . . $ _IBLOB#name.; |
| 978 | } |
| 979 | const char *getLabelcxx . . $ INDI/WidgetView#getLabel(a9f41ea0e82d88cf).() const |
| 980 | { |
| 981 | return this->labelcxx . . $ _IBLOB#label.; |
| 982 | } |
| 983 | const char *getFormatcxx . . $ INDI/WidgetView#getFormat(a9f41ea0e82d88cf).() const |
| 984 | { |
| 985 | return this->formatcxx . . $ _IBLOB#format.; |
| 986 | } |
| 987 | void *getBlobcxx . . $ INDI/WidgetView#getBlob(50c7df7de5344ebb).() |
| 988 | { |
| 989 | return this->blobcxx . . $ _IBLOB#blob.; |
| 990 | } |
| 991 | const void *getBlobcxx . . $ INDI/WidgetView#getBlob(3a8ef3fdc6e817ef).() const |
| 992 | { |
| 993 | return this->blobcxx . . $ _IBLOB#blob.; |
| 994 | } |
| 995 | stdcxx . . $ std/::stringcxx . . $ std/string# getBlobAsStringcxx . . $ INDI/WidgetView#getBlobAsString(219584694fe2b248).() const |
| 996 | { |
| 997 | return stdcxx . . $ std/::stringcxx . . $ std/string#(static_cast<const char*>(this->blobcxx . . $ _IBLOB#blob.), this->bloblencxx . . $ _IBLOB#bloblen.); |
| 998 | } |
| 999 | int getBlobLencxx . . $ INDI/WidgetView#getBlobLen(455f465bc33b4cdf).() const |
| 1000 | { |
| 1001 | return this->bloblencxx . . $ _IBLOB#bloblen.; |
| 1002 | } |
| 1003 | int getSizecxx . . $ INDI/WidgetView#getSize(455f465bc33b4cdf).() const |
| 1004 | { |
| 1005 | return this->sizecxx . . $ _IBLOB#size.; |
| 1006 | } |
| 1007 | |
| 1008 | void *getAuxcxx . . $ INDI/WidgetView#getAux(45a5c5ac6be858a8).() const |
| 1009 | { |
| 1010 | return this->aux0cxx . . $ _IBLOB#aux0.; |
| 1011 | } |
| 1012 | |
| 1013 | public: //tests |
| 1014 | bool isNameMatchcxx . . $ INDI/WidgetView#isNameMatch(7d4bdb1abc417636).(const char *otherName) const |
| 1015 | { |
| 1016 | return !strcmp(getNamecxx . . $ INDI/WidgetView#getName(a9f41ea0e82d88cf).(), otherName); |
| 1017 | } |
| 1018 | bool isNameMatchcxx . . $ INDI/WidgetView#isNameMatch(13a55b95a0133754).(const stdcxx . . $ std/::stringcxx . . $ std/string# &otherName) const |
| 1019 | { |
| 1020 | return getNamecxx . . $ INDI/WidgetView#getName(a9f41ea0e82d88cf).() ==cxx . . $ std/`operator==`(3a786e8ce7e53c2c). otherName; |
| 1021 | } |
| 1022 | |
| 1023 | bool isLabelMatchcxx . . $ INDI/WidgetView#isLabelMatch(7d4bdb1abc417636).(const char *otherLabel) const |
| 1024 | { |
| 1025 | return !strcmp(getLabelcxx . . $ INDI/WidgetView#getLabel(a9f41ea0e82d88cf).(), otherLabel); |
| 1026 | } |
| 1027 | bool isLabelMatchcxx . . $ INDI/WidgetView#isLabelMatch(13a55b95a0133754).(const stdcxx . . $ std/::stringcxx . . $ std/string# &otherLabel) const |
| 1028 | { |
| 1029 | return getLabelcxx . . $ INDI/WidgetView#getLabel(a9f41ea0e82d88cf).() ==cxx . . $ std/`operator==`(3a786e8ce7e53c2c). otherLabel; |
| 1030 | } |
| 1031 | |
| 1032 | public: |
| 1033 | void fillcxx . . $ INDI/WidgetView#fill(facfdab5246d4be7).(const char *name, const char *label, const char *format) |
| 1034 | ; /* outside implementation - only driver side, see indipropertyview_driver.cpp */ |
| 1035 | |
| 1036 | void fillcxx . . $ INDI/WidgetView#fill(9c65d82330563d7e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &name, const stdcxx . . $ std/::stringcxx . . $ std/string# &label, const stdcxx . . $ std/::stringcxx . . $ std/string# &format) |
| 1037 | { |
| 1038 | fillcxx . . $ INDI/WidgetView#fill(facfdab5246d4be7).(name.c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).(), label.c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).(), format.c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 1039 | } |
| 1040 | }; |
| 1041 | |
| 1042 | |
| 1043 | |
| 1044 | |
| 1045 | /* outside implementation */ |
| 1046 | template <typename T> |
| 1047 | inline PropertyViewcxx . . $ INDI/PropertyView#<T>::PropertyViewcxx . . $ INDI/PropertyView#`PropertyView<type-parameter-0-0>`(49f6e7a06ebc5aa8).() |
| 1048 | { |
| 1049 | memset(this, 0, sizeof(*this)); |
| 1050 | } |
| 1051 | |
| 1052 | template <typename T> |
| 1053 | inline void PropertyViewcxx . . $ INDI/PropertyView#<T>::setDeviceNamecxx . . $ INDI/PropertyView#setDeviceName(85c52e162fed56f9).(const char *name) |
| 1054 | { |
| 1055 | INDIcxx . . $ INDI/::strlcpycxx . . $ INDI/strlcpy(55abe9014c6d0e39).(this->device, name); |
| 1056 | } |
| 1057 | |
| 1058 | template <typename T> |
| 1059 | inline void PropertyViewcxx . . $ INDI/PropertyView#<T>::setDeviceNamecxx . . $ INDI/PropertyView#setDeviceName(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &name) |
| 1060 | { |
| 1061 | setDeviceNamecxx . . $ INDI/PropertyView#setDeviceName(85c52e162fed56f9).(name.datacxx . . $ std/__cxx11/basic_string#data(1016ee5406d91ab9).()); |
| 1062 | } |
| 1063 | |
| 1064 | template <typename T> |
| 1065 | inline void PropertyViewcxx . . $ INDI/PropertyView#<T>::setNamecxx . . $ INDI/PropertyView#setName(85c52e162fed56f9).(const char *name) |
| 1066 | { |
| 1067 | INDIcxx . . $ INDI/::strlcpycxx . . $ INDI/strlcpy(c6c5ddc473eee0d4).(this->name, name); |
| 1068 | } |
| 1069 | |
| 1070 | template <typename T> |
| 1071 | inline void PropertyViewcxx . . $ INDI/PropertyView#<T>::setNamecxx . . $ INDI/PropertyView#setName(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &name) |
| 1072 | { |
| 1073 | setNamecxx . . $ INDI/PropertyView#setName(85c52e162fed56f9).(name.datacxx . . $ std/__cxx11/basic_string#data(1016ee5406d91ab9).()); |
| 1074 | } |
| 1075 | |
| 1076 | template <typename T> |
| 1077 | inline void PropertyViewcxx . . $ INDI/PropertyView#<T>::setLabelcxx . . $ INDI/PropertyView#setLabel(85c52e162fed56f9).(const char *label) |
| 1078 | { |
| 1079 | INDIcxx . . $ INDI/::strlcpycxx . . $ INDI/strlcpy(c6c5ddc473eee0d4).(this->label, label); |
| 1080 | } |
| 1081 | |
| 1082 | template <typename T> |
| 1083 | inline void PropertyViewcxx . . $ INDI/PropertyView#<T>::setLabelcxx . . $ INDI/PropertyView#setLabel(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &label) |
| 1084 | { |
| 1085 | setLabelcxx . . $ INDI/PropertyView#setLabel(85c52e162fed56f9).(label.datacxx . . $ std/__cxx11/basic_string#data(1016ee5406d91ab9).()); |
| 1086 | } |
| 1087 | |
| 1088 | template <typename T> |
| 1089 | inline void PropertyViewcxx . . $ INDI/PropertyView#<T>::setGroupNamecxx . . $ INDI/PropertyView#setGroupName(85c52e162fed56f9).(const char *name) |
| 1090 | { |
| 1091 | INDIcxx . . $ INDI/::strlcpycxx . . $ INDI/strlcpy(55abe9014c6d0e39).(this->group, name); |
| 1092 | } |
| 1093 | |
| 1094 | template <typename T> |
| 1095 | inline void PropertyViewcxx . . $ INDI/PropertyView#<T>::setGroupNamecxx . . $ INDI/PropertyView#setGroupName(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &name) |
| 1096 | { |
| 1097 | setGroupNamecxx . . $ INDI/PropertyView#setGroupName(85c52e162fed56f9).(name.datacxx . . $ std/__cxx11/basic_string#data(1016ee5406d91ab9).()); |
| 1098 | } |
| 1099 | |
| 1100 | template <typename T> |
| 1101 | inline void PropertyViewcxx . . $ INDI/PropertyView#<T>::setStatecxx . . $ INDI/PropertyView#setState(ee719c9a0415d7f7).(IPStatecxx . . $ IPState# state) |
| 1102 | { |
| 1103 | this->s = state; |
| 1104 | } |
| 1105 | |
| 1106 | template <typename T> |
| 1107 | inline void PropertyViewcxx . . $ INDI/PropertyView#<T>::setTimestampcxx . . $ INDI/PropertyView#setTimestamp(85c52e162fed56f9).(const char *timestamp) |
| 1108 | { |
| 1109 | INDIcxx . . $ INDI/::strlcpycxx . . $ INDI/strlcpy(55abe9014c6d0e39).(this->timestamp, timestamp); |
| 1110 | } |
| 1111 | |
| 1112 | template <typename T> |
| 1113 | inline void PropertyViewcxx . . $ INDI/PropertyView#<T>::setTimestampcxx . . $ INDI/PropertyView#setTimestamp(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string# ×tamp) |
| 1114 | { |
| 1115 | setTimestampcxx . . $ INDI/PropertyView#setTimestamp(9c546c94e5fcce4e).(timestamp.datacxx . . $ std/__cxx11/basic_string#data(1016ee5406d91ab9).()); |
| 1116 | } |
| 1117 | |
| 1118 | template <typename T> |
| 1119 | template <size_t N> |
| 1120 | inline void PropertyViewcxx . . $ INDI/PropertyView#<T>::setWidgetscxx . . $ INDI/PropertyView#setWidgets(2fae04f3131b689a).(WidgetTypecxx . . $ INDI/PropertyView#WidgetType# (&w)[N]) |
| 1121 | { |
| 1122 | setWidgetscxx . . $ INDI/PropertyView#setWidgets(ffe13ae7fb405683).(static_cast<WidgetTypecxx . . $ INDI/PropertyView#WidgetType#*>(w), N); |
| 1123 | } |
| 1124 | |
| 1125 | template <typename T> |
| 1126 | inline void PropertyViewcxx . . $ INDI/PropertyView#<T>::setAuxcxx . . $ INDI/PropertyView#setAux(5d22bdacc48458e8).(void *user) |
| 1127 | { |
| 1128 | this->aux = user; |
| 1129 | } |
| 1130 | |
| 1131 | template <> |
| 1132 | inline void PropertyViewcxx . . $ INDI/PropertyView#<IText>::savecxx . . $ INDI/PropertyView#save(e682089247c2ee8c).(FILEcxx . . $ FILE# *f) const |
| 1133 | { |
| 1134 | IUSaveConfigText(f, this); |
| 1135 | } |
| 1136 | |
| 1137 | template <> |
| 1138 | inline void PropertyViewcxx . . $ INDI/PropertyView#<INumber>::savecxx . . $ INDI/PropertyView#save(e682089247c2ee8c).(FILEcxx . . $ FILE# *f) const |
| 1139 | { |
| 1140 | IUSaveConfigNumber(f, this); |
| 1141 | } |
| 1142 | |
| 1143 | template <> |
| 1144 | inline void PropertyViewcxx . . $ INDI/PropertyView#<ISwitch>::savecxx . . $ INDI/PropertyView#save(e682089247c2ee8c).(FILEcxx . . $ FILE# *f) const |
| 1145 | { |
| 1146 | IUSaveConfigSwitch(f, this); |
| 1147 | } |
| 1148 | |
| 1149 | template <> |
| 1150 | inline void PropertyViewcxx . . $ INDI/PropertyView#<ILight>::savecxx . . $ INDI/PropertyView#save(e682089247c2ee8c).(FILEcxx . . $ FILE# *f) const |
| 1151 | { |
| 1152 | (void)f; /* IUSaveConfigLight(f, this); */ |
| 1153 | } |
| 1154 | |
| 1155 | template <> |
| 1156 | inline void PropertyViewcxx . . $ INDI/PropertyView#<IBLOB>::savecxx . . $ INDI/PropertyView#save(e682089247c2ee8c).(FILEcxx . . $ FILE# *f) const |
| 1157 | { |
| 1158 | IUSaveConfigBLOB(f, this); |
| 1159 | } |
| 1160 | |
| 1161 | template <typename T> |
| 1162 | inline void PropertyViewcxx . . $ INDI/PropertyView#<T>::setTimeoutcxx . . $ INDI/PropertyView#setTimeout(ba8836b59fb42830).(double timeout) |
| 1163 | { |
| 1164 | this->timeout = timeout; |
| 1165 | } |
| 1166 | |
| 1167 | template <> |
| 1168 | inline void PropertyViewcxx . . $ INDI/PropertyView#<ILight>::setTimeoutcxx . . $ INDI/PropertyView#setTimeout(ba8836b59fb42830).(double) |
| 1169 | { } |
| 1170 | |
| 1171 | template <typename T> |
| 1172 | inline void PropertyViewcxx . . $ INDI/PropertyView#<T>::setPermissioncxx . . $ INDI/PropertyView#setPermission(bc7e9c04cd4ce0c1).(IPermcxx . . $ IPerm# permission) |
| 1173 | { |
| 1174 | this->p = permission; |
| 1175 | } |
| 1176 | |
| 1177 | template <> |
| 1178 | inline void PropertyViewcxx . . $ INDI/PropertyView#<ILight>::setPermissioncxx . . $ INDI/PropertyView#setPermission(bc7e9c04cd4ce0c1).(IPermcxx . . $ IPerm#) |
| 1179 | { } |
| 1180 | |
| 1181 | template <typename T> |
| 1182 | inline void PropertyViewcxx . . $ INDI/PropertyView#<T>::setRulecxx . . $ INDI/PropertyView#setRule(eb6e1aaf803c8b5a).(ISRulecxx . . $ ISRule#) |
| 1183 | { } |
| 1184 | |
| 1185 | template <> |
| 1186 | inline void PropertyViewcxx . . $ INDI/PropertyView#<ISwitch>::setRulecxx . . $ INDI/PropertyView#setRule(eb6e1aaf803c8b5a).(ISRulecxx . . $ ISRule# rule) |
| 1187 | { |
| 1188 | this->rcxx . . $ _ISwitchVectorProperty#r. = rule; |
| 1189 | } |
| 1190 | |
| 1191 | template <typename T> |
| 1192 | inline bool PropertyViewcxx . . $ INDI/PropertyView#<T>::setRulecxx . . $ INDI/PropertyView#setRule(7c222eea44a24d43).(const stdcxx . . $ std/::stringcxx . . $ std/string# &) |
| 1193 | { |
| 1194 | return false; |
| 1195 | } |
| 1196 | |
| 1197 | template <> |
| 1198 | inline bool PropertyViewcxx . . $ INDI/PropertyView#<ISwitch>::setRulecxx . . $ INDI/PropertyView#setRule(7c222eea44a24d43).(const stdcxx . . $ std/::stringcxx . . $ std/string# &rule) |
| 1199 | { |
| 1200 | return crackISRule(rule.datacxx . . $ std/__cxx11/basic_string#data(1016ee5406d91ab9).(), &this->rcxx . . $ _ISwitchVectorProperty#r.) == 0; |
| 1201 | } |
| 1202 | |
| 1203 | template <typename T> |
| 1204 | inline WidgetViewcxx . . $ INDI/WidgetView#<T> *PropertyViewcxx . . $ INDI/PropertyView#<T>::findWidgetByNamecxx . . $ INDI/PropertyView#findWidgetByName(2002a9aa5a751df5).(const char *) const |
| 1205 | { |
| 1206 | return nullptr; |
| 1207 | } |
| 1208 | |
| 1209 | template <> |
| 1210 | inline WidgetViewcxx . . $ INDI/WidgetView#<ITextcxx . . $ IText#> *PropertyViewcxx . . $ INDI/PropertyView#<IText>::findWidgetByNamecxx . . $ INDI/PropertyView#findWidgetByName(128a39b6d019827a).(const char *name) const |
| 1211 | { |
| 1212 | return static_cast<WidgetViewcxx . . $ INDI/WidgetView#<ITextcxx . . $ IText#> *>(IUFindText(this, name)); |
| 1213 | } |
| 1214 | |
| 1215 | template <> |
| 1216 | inline WidgetViewcxx . . $ INDI/WidgetView#<INumbercxx . . $ INumber#> *PropertyViewcxx . . $ INDI/PropertyView#<INumber>::findWidgetByNamecxx . . $ INDI/PropertyView#findWidgetByName(911faa4a93ab8321).(const char *name) const |
| 1217 | { |
| 1218 | return static_cast<WidgetViewcxx . . $ INDI/WidgetView#<INumbercxx . . $ INumber#> *>(IUFindNumber(this, name)); |
| 1219 | } |
| 1220 | |
| 1221 | template <> |
| 1222 | inline WidgetViewcxx . . $ INDI/WidgetView#<ISwitchcxx . . $ ISwitch#> *PropertyViewcxx . . $ INDI/PropertyView#<ISwitch>::findWidgetByNamecxx . . $ INDI/PropertyView#findWidgetByName(418d4ad113981293).(const char *name) const |
| 1223 | { |
| 1224 | return static_cast<WidgetViewcxx . . $ INDI/WidgetView#<ISwitchcxx . . $ ISwitch#> *>(IUFindSwitch(this, name)); |
| 1225 | } |
| 1226 | |
| 1227 | template <> |
| 1228 | inline WidgetViewcxx . . $ INDI/WidgetView#<ILightcxx . . $ ILight#> *PropertyViewcxx . . $ INDI/PropertyView#<ILight>::findWidgetByNamecxx . . $ INDI/PropertyView#findWidgetByName(fb327be27c1aa382).(const char *name) const |
| 1229 | { |
| 1230 | return static_cast<WidgetViewcxx . . $ INDI/WidgetView#<ILightcxx . . $ ILight#> *>(IUFindLight(this, name)); |
| 1231 | } |
| 1232 | |
| 1233 | template <> |
| 1234 | inline WidgetViewcxx . . $ INDI/WidgetView#<IBLOBcxx . . $ IBLOB#> *PropertyViewcxx . . $ INDI/PropertyView#<IBLOB>::findWidgetByNamecxx . . $ INDI/PropertyView#findWidgetByName(5933dc9b73280c68).(const char *name) const |
| 1235 | { |
| 1236 | return static_cast<WidgetViewcxx . . $ INDI/WidgetView#<IBLOBcxx . . $ IBLOB#> *>(IUFindBLOB(this, name)); |
| 1237 | } |
| 1238 | |
| 1239 | template <typename T> |
| 1240 | inline IPermcxx . . $ IPerm# PropertyViewcxx . . $ INDI/PropertyView#<T>::getPermissioncxx . . $ INDI/PropertyView#getPermission(f8f84b696517e164).() const |
| 1241 | { |
| 1242 | return this->p; |
| 1243 | } |
| 1244 | |
| 1245 | template <> |
| 1246 | inline IPermcxx . . $ IPerm# PropertyViewcxx . . $ INDI/PropertyView#<ILight>::getPermissioncxx . . $ INDI/PropertyView#getPermission(f8f84b696517e164).() const |
| 1247 | { |
| 1248 | return IP_ROcxx . . $ IP_RO.; |
| 1249 | } |
| 1250 | |
| 1251 | template <typename T> |
| 1252 | inline ISRulecxx . . $ ISRule# PropertyViewcxx . . $ INDI/PropertyView#<T>::getRulecxx . . $ INDI/PropertyView#getRule(dd4f51758073f870).() const |
| 1253 | { |
| 1254 | return ISR_NOFMANYcxx . . $ ISR_NOFMANY.; |
| 1255 | } |
| 1256 | |
| 1257 | template <> |
| 1258 | inline ISRulecxx . . $ ISRule# PropertyViewcxx . . $ INDI/PropertyView#<ISwitch>::getRulecxx . . $ INDI/PropertyView#getRule(dd4f51758073f870).() const |
| 1259 | { |
| 1260 | return this->rcxx . . $ _ISwitchVectorProperty#r.; |
| 1261 | } |
| 1262 | |
| 1263 | template <typename T> |
| 1264 | inline double PropertyViewcxx . . $ INDI/PropertyView#<T>::getTimeoutcxx . . $ INDI/PropertyView#getTimeout(21b6c25e127938e2).() const |
| 1265 | { |
| 1266 | return this->timeout; |
| 1267 | } |
| 1268 | |
| 1269 | template <> |
| 1270 | inline double PropertyViewcxx . . $ INDI/PropertyView#<ILight>::getTimeoutcxx . . $ INDI/PropertyView#getTimeout(21b6c25e127938e2).() const |
| 1271 | { |
| 1272 | return 0; |
| 1273 | } |
| 1274 | |
| 1275 | template <> |
| 1276 | inline void PropertyViewcxx . . $ INDI/PropertyView#<IText>::setWidgetscxx . . $ INDI/PropertyView#setWidgets(b9c301546974e267).(WidgetTypecxx . . $ INDI/PropertyView#WidgetType# *w, size_t size) |
| 1277 | { |
| 1278 | this->tpcxx . . $ _ITextVectorProperty#tp. = w; |
| 1279 | this->ntpcxx . . $ _ITextVectorProperty#ntp. = size; |
| 1280 | } |
| 1281 | |
| 1282 | template <> |
| 1283 | inline void PropertyViewcxx . . $ INDI/PropertyView#<INumber>::setWidgetscxx . . $ INDI/PropertyView#setWidgets(bcfd1a8c245e53b1).(WidgetTypecxx . . $ INDI/PropertyView#WidgetType# *w, size_t size) |
| 1284 | { |
| 1285 | this->npcxx . . $ _INumberVectorProperty#np. = w; |
| 1286 | this->nnpcxx . . $ _INumberVectorProperty#nnp. = size; |
| 1287 | } |
| 1288 | |
| 1289 | template <> |
| 1290 | inline void PropertyViewcxx . . $ INDI/PropertyView#<ISwitch>::setWidgetscxx . . $ INDI/PropertyView#setWidgets(ade172adbefbfa07).(WidgetTypecxx . . $ INDI/PropertyView#WidgetType# *w, size_t size) |
| 1291 | { |
| 1292 | this->spcxx . . $ _ISwitchVectorProperty#sp. = w; |
| 1293 | this->nspcxx . . $ _ISwitchVectorProperty#nsp. = size; |
| 1294 | } |
| 1295 | |
| 1296 | template <> |
| 1297 | inline void PropertyViewcxx . . $ INDI/PropertyView#<ILight>::setWidgetscxx . . $ INDI/PropertyView#setWidgets(3e08cf5575239baa).(WidgetTypecxx . . $ INDI/PropertyView#WidgetType# *w, size_t size) |
| 1298 | { |
| 1299 | this->lpcxx . . $ _ILightVectorProperty#lp. = w; |
| 1300 | this->nlpcxx . . $ _ILightVectorProperty#nlp. = size; |
| 1301 | } |
| 1302 | |
| 1303 | template <> |
| 1304 | inline void PropertyViewcxx . . $ INDI/PropertyView#<IBLOB>::setWidgetscxx . . $ INDI/PropertyView#setWidgets(292183ddf2eee957).(WidgetTypecxx . . $ INDI/PropertyView#WidgetType# *w, size_t size) |
| 1305 | { |
| 1306 | this->bpcxx . . $ _IBLOBVectorProperty#bp. = w; |
| 1307 | this->nbpcxx . . $ _IBLOBVectorProperty#nbp. = size; |
| 1308 | } |
| 1309 | |
| 1310 | template <> |
| 1311 | inline int PropertyViewcxx . . $ INDI/PropertyView#<IText>::countcxx . . $ INDI/PropertyView#count(455f465bc33b4cdf).() const |
| 1312 | { |
| 1313 | return this->ntpcxx . . $ _ITextVectorProperty#ntp.; |
| 1314 | } |
| 1315 | |
| 1316 | template <> |
| 1317 | inline int PropertyViewcxx . . $ INDI/PropertyView#<INumber>::countcxx . . $ INDI/PropertyView#count(455f465bc33b4cdf).() const |
| 1318 | { |
| 1319 | return this->nnpcxx . . $ _INumberVectorProperty#nnp.; |
| 1320 | } |
| 1321 | |
| 1322 | template <> |
| 1323 | inline int PropertyViewcxx . . $ INDI/PropertyView#<ISwitch>::countcxx . . $ INDI/PropertyView#count(455f465bc33b4cdf).() const |
| 1324 | { |
| 1325 | return this->nspcxx . . $ _ISwitchVectorProperty#nsp.; |
| 1326 | } |
| 1327 | |
| 1328 | template <> |
| 1329 | inline int PropertyViewcxx . . $ INDI/PropertyView#<ILight>::countcxx . . $ INDI/PropertyView#count(455f465bc33b4cdf).() const |
| 1330 | { |
| 1331 | return this->nlpcxx . . $ _ILightVectorProperty#nlp.; |
| 1332 | } |
| 1333 | |
| 1334 | template <> |
| 1335 | inline int PropertyViewcxx . . $ INDI/PropertyView#<IBLOB>::countcxx . . $ INDI/PropertyView#count(455f465bc33b4cdf).() const |
| 1336 | { |
| 1337 | return this->nbpcxx . . $ _IBLOBVectorProperty#nbp.; |
| 1338 | } |
| 1339 | |
| 1340 | template <> |
| 1341 | inline PropertyViewcxx . . $ INDI/PropertyView#<IText>::WidgetTypecxx . . $ INDI/PropertyView#WidgetType# *PropertyViewcxx . . $ INDI/PropertyView#<IText>::widgetcxx . . $ INDI/PropertyView#widget(bad418bc73438ee3).() const |
| 1342 | { |
| 1343 | return static_cast<WidgetTypecxx . . $ INDI/PropertyView#WidgetType#*>(this->tpcxx . . $ _ITextVectorProperty#tp.); |
| 1344 | } |
| 1345 | |
| 1346 | template <> |
| 1347 | inline PropertyViewcxx . . $ INDI/PropertyView#<INumber>::WidgetTypecxx . . $ INDI/PropertyView#WidgetType# *PropertyViewcxx . . $ INDI/PropertyView#<INumber>::widgetcxx . . $ INDI/PropertyView#widget(ba31752634f10946).() const |
| 1348 | { |
| 1349 | return static_cast<WidgetTypecxx . . $ INDI/PropertyView#WidgetType#*>(this->npcxx . . $ _INumberVectorProperty#np.); |
| 1350 | } |
| 1351 | |
| 1352 | template <> |
| 1353 | inline PropertyViewcxx . . $ INDI/PropertyView#<ISwitch>::WidgetTypecxx . . $ INDI/PropertyView#WidgetType# *PropertyViewcxx . . $ INDI/PropertyView#<ISwitch>::widgetcxx . . $ INDI/PropertyView#widget(e5e139b3acbae3f6).() const |
| 1354 | { |
| 1355 | return static_cast<WidgetTypecxx . . $ INDI/PropertyView#WidgetType#*>(this->spcxx . . $ _ISwitchVectorProperty#sp.); |
| 1356 | } |
| 1357 | |
| 1358 | template <> |
| 1359 | inline PropertyViewcxx . . $ INDI/PropertyView#<ILight>::WidgetTypecxx . . $ INDI/PropertyView#WidgetType# *PropertyViewcxx . . $ INDI/PropertyView#<ILight>::widgetcxx . . $ INDI/PropertyView#widget(8fc3825a2e481ad).() const |
| 1360 | { |
| 1361 | return static_cast<WidgetTypecxx . . $ INDI/PropertyView#WidgetType#*>(this->lpcxx . . $ _ILightVectorProperty#lp.); |
| 1362 | } |
| 1363 | |
| 1364 | template <> |
| 1365 | inline PropertyViewcxx . . $ INDI/PropertyView#<IBLOB>::WidgetTypecxx . . $ INDI/PropertyView#WidgetType# *PropertyViewcxx . . $ INDI/PropertyView#<IBLOB>::widgetcxx . . $ INDI/PropertyView#widget(73cb445aa4e4d943).() const |
| 1366 | { |
| 1367 | return static_cast<WidgetTypecxx . . $ INDI/PropertyView#WidgetType#*>(this->bpcxx . . $ _IBLOBVectorProperty#bp.); |
| 1368 | } |
| 1369 | |
| 1370 | } |