Jump to content
OpenSplice DDS Forum

Search the Community

Showing results for tags 'setter'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • About OpenSplice DDS
    • News and Events
    • Site Feedback
  • Using OpenSplice DDS
    • General
    • Troubleshooting
  • Understanding OpenSplice DDS
    • OpenSplice DDS Slideshows
    • OpenSplice DDS Movies
  • Community
    • Project: SIMD
    • Project: CamelOS
    • Project: DDS Touchstone
    • Project: RESTful DDS
    • Mac OS X

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Company

Found 1 result

  1. Hi I have an IDL as follows: module myPacket { module Building { module IDL_Floor { struct Sensors { boolean enable; float bonjefir; }; #pragma keylist Sensors enable }; }; }; In my code, I try to set a value for the float variable "bonjefir" as follows: myPacket::Building::IDL_Floor::Sensors data; data.bonjefir(100); But getting the following error: error: call of overloaded 'bonjefir(int)' is ambiguous I can solve this problem by modifying the files generated by "idlpp" command: file <myIDL.h> ... DDS::Float bonjefir() const { return this->bonefir_; } DDS::Float& bonjefir() { return this->bonjefir_; } void bonjrfir(DDS::Float _val_) { this->bonjefir_ = _val_; } #ifdef OSPL_DDS_CXX11 void bonjefir(DDS::Float&& _val_) { this->bonjefir_ = _val_; } // Comment this line #endif ... However setting the value of IDL like below is OK and working: data.bonjefir() = 100; // I don't like it data.bonjefir_ = 100; Is there any solution for this problem? Thanks in advance for your helps. Bonjefir
×