Package dcamapi

Examples of dcamapi.DCAMAPI_INIT


{

  @Test
  public void demo()
  {
    final DCAMAPI_INIT lDCAMAPI_INIT = new DCAMAPI_INIT();
    lDCAMAPI_INIT.size(BridJ.sizeOf(DCAMAPI_INIT.class));
    final IntValuedEnum<DCAMERR> dcamapiInit = DcamapiLibrary.dcamapiInit(pointerTo(lDCAMAPI_INIT));

    assertTrue(dcamapiInit.toString().contains("DCAMERR_SUCCESS"));
    assertTrue(lDCAMAPI_INIT.iDeviceCount() > 0);
    System.out.format("nb of devices:=%d \n",
                      lDCAMAPI_INIT.iDeviceCount());

    /*
     * DCAMDEV_STRING  param;
    memset( &param, 0, sizeof(param) );
    param.size    = sizeof(param);
View Full Code Here


  private static boolean sInitialized = false;
  private static long sNumberOfDevices = -1;

  public static final boolean initialize()
  {
    final DCAMAPI_INIT lDCAMAPI_INIT = new DCAMAPI_INIT();
    lDCAMAPI_INIT.size(BridJ.sizeOf(DCAMAPI_INIT.class));
    final IntValuedEnum<DCAMERR> dcamapiInit = DcamapiLibrary.dcamapiInit(pointerTo(lDCAMAPI_INIT));

    final boolean lSuccess = hasSucceeded(dcamapiInit);

    if (lSuccess)
    {
      sInitialized = true;

      sNumberOfDevices = lDCAMAPI_INIT.iDeviceCount();

      Runtime.getRuntime().addShutdownHook(new Thread()
      {
        @Override
        public void run()
View Full Code Here

TOP

Related Classes of dcamapi.DCAMAPI_INIT

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.