summaryrefslogtreecommitdiff
path: root/project2/commonObjects.cpp
blob: 31f81a9a49bae4441a04063f63e7ccf149498119 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "commonObjects.h"

RowSetPtr
CommonObjects::getSource(const std::string & name) const
{
	RowSets::index<bySOName>::type::const_iterator i = rowSets.get<bySOName>().find(name);
	if (i != rowSets.get<bySOName>().end()) {
		return *i;
	}
	throw CommonObjects::DataSourceNotFound(name);
}