- Added unit tests - blank for now.
- Added stubbed ColProject, just so that ColID is not the only column.
- Renamed files for clarity and namespace reasons.
This commit is contained in:
Paul Beckingham
2011-04-26 22:46:04 -04:00
parent 74d799acea
commit c5f71051ad
10 changed files with 225 additions and 5 deletions

View File

@@ -28,14 +28,16 @@
#include <iostream>
#include <Context.h>
#include <Column.h>
#include <ID.h>
#include <ColID.h>
#include <ColProject.h>
extern Context context;
////////////////////////////////////////////////////////////////////////////////
Column* Column::factory (const std::string& name)
{
if (name == "id") return new ColumnID ();
if (name == "id") return new ColumnID ();
if (name == "project") return new ColumnProject ();
throw std::string ("Unrecognized column type '") + name + "'";
return NULL;