View
- 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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user