Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. std::vector<std::vector<std::string>> nombreVector;
  2.  
  3. typedef std::vector<std::vector<std::string>> RetornoConsulta;
  4. const RetornoConsulta* consultar_tabla_x(int codigoTabla)
  5. {
  6. RetornoConsulta *retorno = nullptr;
  7.  
  8. try
  9. {
  10. retorno = extraer_datos_consulta(codigoTabla);
  11. }
  12. catch(std::exception &ex)
  13. {
  14. throw ex;
  15. }
  16. return retorno;
  17. }
  18.  
  19. typedef std::vector<std::vector<std::string>> RetornoConsulta;
  20. unique_ptr<RetornoConsulta> consultar_tabla_x(int codigoTabla)
  21. {
  22. unique_ptr<RetornoConsulta> ptrRetorno;
  23.  
  24. try
  25. {
  26. ptrRetorno = make_unique<RetornoConsulta>(extraer_datos_consulta(codigoTabla));
  27. }
  28. catch(std::exception &ex)
  29. {
  30. throw ex;
  31. }
  32.  
  33. return ptrRetorno;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement