Exemplo n.º 1
0
std::string Book::get(std::string search) // return all books for a search crtieria
{
		
	std::list<BSONObj> list = get(search, 1);
	JsonHelper h;
	return h.BSONArray2JSONStr(list);
}
Exemplo n.º 2
0
std::string Book::getAll() // return all books as JSON Array String
{

	std::list<BSONObj> list = pCon->getAll(DB_BOOKS);
	
	JsonHelper h;
	return h.BSONArray2JSONStr(list);

}