Skip to content

Instantly share code, notes, and snippets.

@oaltman
Created June 2, 2013 17:01
Show Gist options
  • Save oaltman/5694146 to your computer and use it in GitHub Desktop.
Save oaltman/5694146 to your computer and use it in GitHub Desktop.
CTable
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