LContainer::GetObjectType

Summary

Gets the current container object type.

Syntax

#include "Ltwrappr.h"

L_INT LContainer::GetObjectType (pnObjectType)

Parameters

pCONTAINEROBJECTTYPE pnObjectType

Pointer to the variable to be updated with the current object type.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Required DLLs and Libraries

See Also

Functions

Topics

Example

L_INT LContainer_GetObjectTypeExample( LContainer &lCont )  
 
{ 
   L_INT nRet; 
 
   nRet = lCont.IsValid ( ); 
 
   if ( nRet == SUCCESS ) /* check the validity of container handle */ 
 
   { 
 
      CONTAINEROBJECTTYPE nObjectType;  
 
      /* get the current container object */ 
 
      nRet = lCont.GetObjectType ( &nObjectType ) ;  
      if(nRet != SUCCESS) 
         return nRet; 
 
      /* stick to line object */ 
 
      if ( CONTAINER_OBJECT_TYPE_LINE != nObjectType )  
 
      { 
 
         /* set the container object */ 
 
         nRet = lCont.SetObjectType ( CONTAINER_OBJECT_TYPE_LINE ) ;  
         if(nRet != SUCCESS) 
            return nRet; 
 
      } 
 
   } 
 
   else 
 
   { 
 
      return nRet ; 
 
   } 
 
   return SUCCESS ;  
 
}  
Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Container and Automation C++ Class Library Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.