15 #include "EVENT/LCIO.h"
19 using namespace lcio ;
23 LCCollectionVec* col =
new LCCollectionVec( colname ) ;
24 return reinterpret_cast<PTRTYPE>( col ) ;
27 LCCollectionVec* col =
reinterpret_cast<LCCollectionVec*
>(collection) ;
29 return LCIO::SUCCESS ;
33 LCCollectionVec* col =
reinterpret_cast<LCCollectionVec*
>(collection) ;
34 return col->getNumberOfElements() ;
38 const LCCollectionVec* col =
reinterpret_cast<LCCollectionVec*
>( (collection) ) ;
39 return const_cast<char*
>( col->getTypeName().c_str() ) ;
43 LCCollectionVec* col =
reinterpret_cast<LCCollectionVec*
>(collection) ;
45 return C2F_POINTER( LCObject*, col->getElementAt( index - 1 ) ) ;
49 LCCollectionVec* col =
reinterpret_cast<LCCollectionVec*
>(collection) ;
50 return col->getFlag() ;
54 LCCollectionVec* col =
reinterpret_cast<LCCollectionVec*
>(collection) ;
55 return col->isTransient() ;
59 LCCollectionVec* col =
reinterpret_cast<LCCollectionVec*
>(collection) ;
60 col->setTransient( value) ;
61 return LCIO::SUCCESS ;
64 LCCollectionVec* col =
reinterpret_cast<LCCollectionVec*
>(collection) ;
65 return col->isDefault() ;
69 LCCollectionVec* col =
reinterpret_cast<LCCollectionVec*
>(collection) ;
70 col->setDefault( value) ;
71 return LCIO::SUCCESS ;
75 LCCollectionVec* col =
reinterpret_cast<LCCollectionVec*
>(collection) ;
77 return LCIO::SUCCESS ;
81 LCCollectionVec* col =
reinterpret_cast<LCCollectionVec*
>(collection) ;
82 col->addElement( reinterpret_cast<LCObject*>(
object) ) ;
84 }
catch(...){
return LCIO::ERROR ; }
85 return LCIO::SUCCESS ;
90 LCCollectionVec* col =
reinterpret_cast<LCCollectionVec*
>(collection) ;
91 col->removeElementAt( i ) ;
92 }
catch(...){
return LCIO::ERROR ; }
93 return LCIO::SUCCESS ;
LCIO_DEPRECATED_CAPI int lccolgetnumberofelements(PTRTYPE collection)
LCIO_DEPRECATED_CAPI int lccoladdelement(PTRTYPE collection, PTRTYPE object)
LCIO_DEPRECATED_CAPI PTRTYPE lccolgetelementat(PTRTYPE collection, int index)
LCIO_DEPRECATED_CAPI int lccoldelete(PTRTYPE collection)
LCIO_DEPRECATED_CAPI bool lccolistransient(PTRTYPE collection)
LCIO_DEPRECATED_CAPI int lccolsetflag(PTRTYPE collection, int flag)
LCIO_DEPRECATED_CAPI bool lccolisdefault(PTRTYPE collection)
LCIO_DEPRECATED_CAPI char * lccolgettypename(PTRTYPE collection)
long PTRTYPE
Fortran interface - define the length of pointers this has to made machine independent ...
LCIO_DEPRECATED_CAPI int lccolsettransient(PTRTYPE collection, bool value)
LCIO_DEPRECATED_CAPI int lccolsetdefault(PTRTYPE collection, bool value)
LCIO_DEPRECATED_CAPI int lccolremoveelementat(PTRTYPE collection, int i)
LCIO_DEPRECATED_CAPI PTRTYPE lccolcreate(const char *colname)
Header file for the f77-wrapper functions of the LCCollectionVec class.
LCIO_DEPRECATED_CAPI int lccolgetflag(PTRTYPE collection)
#define C2F_POINTER(T, ptr)