37 template<
class T,
unsigned Dim,
class M,
class C>
47 std::string filestring =
"file";
48 if (std::string(dc->
DSID()) != filestring) {
49 ERRORMSG(
"Illegal DataConnect object for FILE Data Object." <<
endl);
52 ERRORMSG(
"FILE connections may only be of type INPUT or OUTPUT." <<
endl);
58 if (dc->
size() == 0) {
71 ERRORMSG(
"Could not find proper DiscField while connecting " << nm <<
endl);
83 template<
class T,
unsigned Dim,
class M,
class C>
88 if (DF != 0 && getConnection()->size() == 0)
96 template<
class T,
unsigned Dim,
class M,
class C>
102 DF->write(myField, FieldID);
104 DF->read(myField, FieldID, counter++);
114 template<
class T,
unsigned Dim,
class M,
class C>
Inform & endl(Inform &inf)
unsigned int size() const
const char * DSID() const
const char * getTypeString() const
unsigned int getNumObjects() const
virtual ~FileFieldDataSource()
virtual void interact(const char *=0)
FileFieldDataSource(const char *, DataConnect *, int, Field< T, Dim, M, C > &)
const char * name() const