TAPs 0.7.7.3
TAPsSensAble_hduRecord.hpp
Go to the documentation of this file.
00001 /******************************************************************************
00002 TAPsSensAble_hduRecord.hpp
00003 
00004 Modified from SensAble hduRecord.h
00005 
00006 SUKITTI PUNAK   (11/27/2006)
00007 UPDATE          (11/27/2006)
00008 ******************************************************************************/
00009 
00010 // Original comment from hduRecord.h
00011 /*****************************************************************************
00012 
00013 Copyright (c) 2004 SensAble Technologies, Inc. All rights reserved.
00014 
00015 OpenHaptics(TM) toolkit. The material embodied in this software and use of
00016 this software is subject to the terms and conditions of the clickthrough
00017 Development License Agreement.
00018 
00019 For questions, comments or bug reports, go to forums at: 
00020     http://dsc.sensable.com
00021 
00022 Module Name:
00023 
00024   hduRecord.h 
00025 
00026 Description: 
00027 
00028   Records device data from the scheduler for a specified number of ticks, and 
00029   with option to add additional user data.
00030 ******************************************************************************/
00031 #ifndef TAPs_SENSABLE_HDU_RECORD_HPP
00032 #define TAPs_SENSABLE_HDU_RECORD_HPP
00033 
00034 #include <HD/hdDefines.h>
00035 #include <stdio.h>
00036 
00037 BEGIN_NAMESPACE_TAPs__Haptic
00038 //=============================================================================
00039 
00040 #ifdef __cplusplus 
00041 extern "C" {
00042 #endif  
00043 
00044 /******************************************************************************
00045  For record/playback operations, appends the returned string to the data 
00046  for each frame.  User is responsible for allocating and deallocating 
00047  the string.
00048 ******************************************************************************/
00049 typedef char * SensAble_HDURecordCallback ( void * pUserData );
00050     
00051 /******************************************************************************
00052  Start a recording session.  Records for nData ticks, writes results to file.
00053  pCallback is an optional user callback called each tick to append any
00054  additional information.  
00055  Returns false if recording could not be started.
00056 ******************************************************************************/
00057 HDSchedulerHandle SensAble_hduStartRecord (
00058     FILE *                      file,
00059     SensAble_HDURecordCallback  pCallback, 
00060     void *                      pCallbackData,
00061     unsigned int                nData
00062 );
00063 
00064 #ifdef __cplusplus
00065 }
00066 #endif
00067 //=============================================================================
00068 END_NAMESPACE_TAPs__Haptic
00069 //-----------------------------------------------------------------------------
00070 // Include definition if TAPs_USE_EXPORT is not defined
00071 #if !defined( TAPs_USE_EXPORT )
00072     #include "TAPsSensAble_hduRecord.cpp"
00073 #endif
00074 //-----------------------------------------------------------------------------
00075 #endif  /* TAPs_SENSABLE_HDU_RECORD_HPP */
00076 //34567890123456789012345678901234567890123456789012345678901234567890123456789
00077 //--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines