Changeset 26:77a23a961301 in xplra for test


Ignore:
Timestamp:
02/07/13 18:58:46 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The multi-dataref buffers are managed by the XPlane object

Location:
test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • test/multigettest.cc

    r22 r26  
    6363        printf("Connected to X-Plane.\n\n");
    6464
    65         MultiGetter getter(xplane);
     65        MultiGetter& getter = xplane.createMultiGetter();
    6666
    6767        const size_t tailnumID = getter.addByteArray("sim/aircraft/view/acf_tailnum", 40);
     
    182182        }
    183183
     184        //xplane.destroyMultiBuffer(getter);
     185
    184186        return 0;
    185187    } catch(Exception& exception) {
  • test/multisettest.cc

    r21 r26  
    6363        printf("Connected to X-Plane.\n\n");
    6464
    65         MultiSetter setter(xplane);
     65        MultiSetter& setter = xplane.createMultiSetter();
    6666
    6767        try {
     
    9898            printf("Done.\n");
    9999
     100            //xplane.destroyMultiBuffer(setter);
     101
    100102            return 0;
    101103        } catch(Exception& exception) {
Note: See TracChangeset for help on using the changeset viewer.