DatabaseObject.h
1 /** 2 * @file DatabaseObject.h 3 * @author Rene Ceska xceska06 (xceska06@stud.fit.vutbr.cz) 4 * @brief Object representing one row from database 5 * @date 2023-11-19 6 */ 7 #ifndef DATABASE_OBJECT_H 8 #define DATABASE_OBJECT_H 9 #include <fstream> 10 #include <iostream> 11 #include <sstream> 12 #include <string> 13 #include <vector> 14 15 /** 16 * @brief Object representing one row from database 17 * 18 */ 19 class DatabaseObject { 20 private: 21 std::vector<unsigned char> name; 22 std::vector<unsigned char> uid; 23 std::vector<unsigned char> email; 24 25 public: 26 std::vector<unsigned char> get_name(); 27 std::vector<unsigned char> get_uid(); 28 std::vector<unsigned char> get_email(); 29 DatabaseObject(std::vector<unsigned char> name, 30 std::vector<unsigned char> uid, 31 std::vector<unsigned char> email); 32 }; 33 34 35 #endif