Created
June 2, 2013 17:01
-
-
Save oaltman/5694146 to your computer and use it in GitHub Desktop.
CTable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CTable { | |
public: | |
CTable(); | |
~CTable(); | |
void insert(std::vector<std::pair<std::string,CColumn*> > params); | |
void select(std::string column); | |
void deleteRows(std::vector<int> rows); | |
void printRows(std::vector<int> rows, std::vector<std::string> columns); | |
void insertRows(std::vector<std::string> values); | |
std::vector<int> findBy(std::string column, std::string value); | |
protected: | |
std::map<std::string,CColumn*> columns; | |
int nextId; | |
static const std::string ID_COLUMN; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment