From cb33c2f06b86abd7653f18fe9596f85c91282a88 Mon Sep 17 00:00:00 2001 From: dsandersoremutah Date: Fri, 22 Sep 2006 15:50:39 +0000 Subject: [PATCH] Added reset method to DataVector class in C#. git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@900 0109f412-320b-0410-ab79-c3e0c5ffbbe6 --- xflaim/csharp/xflaim/DataVector.cpp | 10 ++++++++++ xflaim/csharp/xflaim/DataVector.cs | 16 ++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/xflaim/csharp/xflaim/DataVector.cpp b/xflaim/csharp/xflaim/DataVector.cpp index dcc48e1..a332af0 100644 --- a/xflaim/csharp/xflaim/DataVector.cpp +++ b/xflaim/csharp/xflaim/DataVector.cpp @@ -514,3 +514,13 @@ FLMEXTC FLMEXP RCODE FLMAPI xflaim_DataVector_inputData( return( pDataVector->inputData( pDb, (FLMUINT)ui32IndexNum, pucData, (FLMUINT)i32DataLen)); } + +/**************************************************************************** +Desc: +****************************************************************************/ +FLMEXTC FLMEXP void FLMAPI xflaim_DataVector_reset( + FLMUINT64 ui64This) +{ + IF_DataVector * pDataVector = ((IF_DataVector *)(FLMUINT)ui64This); + pDataVector->reset(); +} diff --git a/xflaim/csharp/xflaim/DataVector.cs b/xflaim/csharp/xflaim/DataVector.cs index d0991d4..8a44cdc 100644 --- a/xflaim/csharp/xflaim/DataVector.cs +++ b/xflaim/csharp/xflaim/DataVector.cs @@ -1058,5 +1058,21 @@ namespace xflaim byte [] pucData, int iDataLen); +//----------------------------------------------------------------------------- +// reset +//----------------------------------------------------------------------------- + + /// + /// Reset the contents of a data vector. + /// + public void reset() + { + xflaim_DataVector_reset( m_pDataVector); + } + + [DllImport("xflaim")] + private static extern RCODE xflaim_DataVector_reset( + ulong pDataVector); + } }