29 #ifndef AVT_VMBAPI_CAMERA_HPP 30 #define AVT_VMBAPI_CAMERA_HPP 38 inline VmbErrorType Camera::GetID( std::string &rStrID )
const 43 res = GetID( NULL, nLength );
50 std::vector<std::string::value_type>tmpID( nLength + 1,
'\0');
51 res = GetID( &tmpID[0], nLength );
54 rStrID = &*tmpID.begin();
72 inline VmbErrorType Camera::GetName( std::string &rStrName )
const 77 res = GetName( NULL, nLength );
84 std::vector<std::string::value_type> tmpName( nLength + 1,
'\0' );
85 res = GetName( &tmpName[0], nLength );
88 rStrName = &*tmpName.begin();
106 inline VmbErrorType Camera::GetModel( std::string &rStrModel )
const 111 res = GetModel( NULL, nLength );
118 std::vector<std::string::value_type> tmpModel( nLength + 1,
'\0');
119 res = GetModel( &tmpModel[0], nLength );
122 rStrModel = &*tmpModel.begin();
140 inline VmbErrorType Camera::GetSerialNumber( std::string &rStrSerial )
const 145 res = GetSerialNumber( NULL, nLength );
152 std::vector<std::string::value_type> tmpSerial( nLength + 1,
'\0');
153 res = GetSerialNumber( &tmpSerial[0], nLength );
156 rStrSerial = &*tmpSerial.begin();
174 inline VmbErrorType Camera::GetInterfaceID( std::string &rStrInterfaceID )
const 179 res = GetInterfaceID( NULL, nLength );
186 std::vector<std::string::value_type> tmpID( nLength + 1,
'\0');
187 res = GetInterfaceID( &tmpID[0], nLength );
190 rStrInterfaceID = &*tmpID.begin();
200 rStrInterfaceID.clear();
211 res = AcquireMultipleImages( rFrames, nTimeout, i );
212 if ( rFrames.size() != i )
221 if (
true == rFrames.empty() )
226 return AcquireMultipleImages( &rFrames[0], (
VmbUint32_t)rFrames.size(), nTimeout, &rNumFramesCompleted );
233 return ReadRegisters( rAddresses, rBuffer, i );
237 if (
true == rAddresses.empty()
238 ||
true == rBuffer.empty()
239 || rAddresses.size() > rBuffer.size() )
243 return ReadRegisters( &rAddresses[0], (
VmbUint32_t)rAddresses.size(), &rBuffer[0], &rCompletedReads );
250 return WriteRegisters( rAddresses, rBuffer, i );
254 if (
true == rAddresses.empty()
255 ||
true == rBuffer.empty()
256 || rAddresses.size() != rBuffer.size() )
261 return WriteRegisters( &rAddresses[0], (
VmbUint32_t)rAddresses.size(), &rBuffer[0], &rCompletedWrites );
268 return ReadMemory( rAddress, rBuffer, i );
272 if (
true == rBuffer.empty() )
277 return ReadMemory( rAddress, &rBuffer[0], (
VmbUint32_t)rBuffer.size(), &rCompletedReads );
284 return WriteMemory( rAddress, rBuffer, i );
288 if (
true == rBuffer.empty() )
293 return WriteMemory( rAddress, &rBuffer[0], (
VmbUint32_t)rBuffer.size(), &rCompletedWrites );
301 if(
true == strFileName.empty() )
308 if(
false == ((0 <= m_persistType) && (3 > m_persistType)) )
310 useInternalStruct =
false;
312 if(
false == ((0 < m_maxIterations) && (10 > m_maxIterations)) )
314 useInternalStruct =
false;
316 if(
false == ((0 < m_loggingLevel) && (5 > m_loggingLevel)) )
318 useInternalStruct =
false;
328 err = SaveCameraSettings( strFileName.c_str(), &newSettings );
332 err = SaveCameraSettings( strFileName.c_str(), pSettings );
343 if(
true == strFileName.empty() )
350 if(
false == ((0 <= m_persistType) && (3 > m_persistType)) )
352 useInternalStruct =
false;
354 if(
false == ((0 < m_maxIterations) && (10 > m_maxIterations)) )
356 useInternalStruct =
false;
358 if(
false == ((0 < m_loggingLevel) && (5 > m_loggingLevel)) )
360 useInternalStruct =
false;
370 err = LoadCameraSettings( strFileName.c_str(), &newSettings );
374 err = LoadCameraSettings( strFileName.c_str(), pSettings );
VmbUint32_t maxIterations
VmbFeaturePersist_t persistType
unsigned long long VmbUint64_t
std::vector< FramePtr > FramePtrVector
std::vector< VmbUint64_t > Uint64Vector
std::vector< VmbUchar_t > UcharVector