Package dcamapi

Examples of dcamapi.DCAMDEV_STRING


    err = dcamdev_getstring( hdcam, &param );
     */

    final Pointer<Byte> model = allocateBytes(256);

    final DCAMDEV_STRING lDCAMDEV_STRING = new DCAMDEV_STRING();
    lDCAMDEV_STRING.size(BridJ.sizeOf(DCAMDEV_STRING.class));
    lDCAMDEV_STRING.iString(DCAM_IDSTR.DCAM_IDSTR_MODEL.value());
    lDCAMDEV_STRING.text(model);
    lDCAMDEV_STRING.textbytes(model.getValidBytes());

    // dcamdev_getstring
    DcamapiLibrary.dcamdevGetstring((Pointer<HDCAM_struct>) Pointer.NULL,
                                    pointerTo(lDCAMDEV_STRING));

View Full Code Here


  public final String getDeviceString(final DCAM_IDSTR pDCAM_IDSTR)
  {
    final Pointer<Byte> lPointerToString = allocateBytes(256);

    final DCAMDEV_STRING lDCAMDEV_STRING = new DCAMDEV_STRING();
    lDCAMDEV_STRING.size(BridJ.sizeOf(DCAMDEV_STRING.class));
    lDCAMDEV_STRING.iString(pDCAM_IDSTR.value());
    lDCAMDEV_STRING.text(lPointerToString);
    lDCAMDEV_STRING.textbytes(lPointerToString.getValidBytes());

    final IntValuedEnum<DCAMERR> lError = DcamapiLibrary.dcamdevGetstring(getHDCAMPointer(),
                                                                          pointerTo(lDCAMDEV_STRING));

    final boolean lSuccess = addErrorToListAndCheckHasSucceeded(lError);
View Full Code Here

TOP

Related Classes of dcamapi.DCAMDEV_STRING

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.