"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

How to make DataSet as Array

How can i make Dataset as Array in VideoPlayback.cpp?so that i can choose the specific dataset to activate

QCAR::DataSet* dataSetStonesAndChips    = 0;

 

 

 

AlessandroB

Wed, 03/27/2013 - 11:27

Hi,

you could use an array of QCAR::DataSet pointers, or an std::vector of QCAR::DataSet pointers; both options are valid in principle;

please refer to the C++ programming guide:

http://www.cprogramming.com/

If you need a dynamically resizable array, std::vector is probably the best option:

#include <vector>

std::vector<QCAR::DataSet*> myDataSetArray;

Adding a dataset is as simple as:

mDataSetArray.push_back( someDataSet );