#include "ExampleClass.h"
#include <vector>
using std::vector;
vector<ExampleClass*> dbs;
//Load data from vector
static vector<ExampleClass*> loadDbInfo()
{
ExampleClass *dbinfo = new ExampleClass();
dbinfo->method1();
dbinfo->method2();
dbs.push_back(dbinfo);
return dbs;
}
//Save data to vector
static saveDbInfo()
{
vector<ExampleClass *> dbs = ExampleClass ::member.method0();
vector <ExampleClass *>::iterator itor = dbs.begin();
ExampleClass *dbinfo = NULL;
while(itor != dbs.end())
{
dbinfo = (ExampleClass *)(*itor);
itor++;
}
}
//More Useful Links
http://mxdxm.javaeye.com/blog/546388
http://developer.51cto.com/art/201002/183645.htm