14 #include "msdevstudio/MSconfig.h"
29 using std::runtime_error;
33 using namespace hippodraw;
38 : m_base_name (
"in-memory" ),
40 m_current_index ( -1 )
72 throw ( runtime_error )
77 string what (
"DataSourceController: No NTuple with name `" );
79 what +=
"' has been registered";
80 throw runtime_error ( what );
92 DataSourceList_t::size_type i = 0;
94 for ( ; i <
size; i++ ) {
96 const string & ds_name = ds -> getName ();
97 if ( ds_name == name ) {
123 const std::string & new_name )
127 ntuple -> setName ( new_name );
135 DataSourceList_t::const_iterator first
149 for (
unsigned int i = 0; i <
size; i++ ) {
151 if ( all ==
false ) {
155 sources.push_back ( ds );
160 const vector < string > &
166 DataSourceList_t::const_iterator i =
m_sources.begin ();
169 const string & name = source -> getName ();
181 if ( text.empty () ) {
198 ntuple -> setName ( key );
199 ntuple -> addObserver (
this );
208 DataSourceList_t::iterator i
230 = dynamic_cast <
const DataSource * > ( observee );
231 if ( ntuple == 0 )
return;