Guest User

Untitled

a guest
Jun 22nd, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. int gtr::StockBitmaps::save(sqlite3x::sqlite3_connection& con, int id)
  2. {
  3. sqlite3x::sqlite3_transaction trans(con);
  4.  
  5. //
  6. // código.....
  7. //
  8.  
  9. std::for_each(
  10. m_data.begin(),
  11. m_data.end(),
  12. boost::bind(&gtr::StockBitmaps::storeBitmap, this, &con, id, update, _1)
  13. );
  14. trans.commit();
  15. return id;
  16. }
  17.  
  18. void gtr::StockBitmaps::storeBitmap(sqlite3x::sqlite3_connection* con, int stockBitmapId,
  19. bool update, const gtr::StockBitmaps::BitmapContainerElement& element)
  20. {
Add Comment
Please, Sign In to add comment