MOOSE - Multiscale Object Oriented Simulation Environment
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SharedFinfo.h
Go to the documentation of this file.
1 /**********************************************************************
2 ** This program is part of 'MOOSE', the
3 ** Messaging Object Oriented Simulation Environment.
4 ** Copyright (C) 2003-2009 Upinder S. Bhalla. and NCBS
5 ** It is made available under the terms of the
6 ** GNU Lesser General Public License version 2.1
7 ** See the file COPYING.LIB for the full notice.
8 **********************************************************************/
9 #ifndef _SHARED_FINFO_H
10 #define _SHARED_FINFO_H
11 
18 class SharedFinfo: public Finfo
19 {
20  public:
21  SharedFinfo( const string& name, const string& doc,
22  Finfo** entries, unsigned int numEntries );
23 
25 
26  void registerFinfo( Cinfo* c );
27 
28  bool strSet( const Eref& tgt, const string& field,
29  const string& arg ) const;
30  bool strGet( const Eref& tgt, const string& field,
31  string& returnValue ) const;
32 
37  bool checkTarget( const Finfo* target ) const;
38 
43  bool addMsg( const Finfo* target, ObjId mid, Element* src ) const;
44 
45  const vector< SrcFinfo* >& src() const;
46 
47  const vector< Finfo* >& dest() const;
48 
50  // Override the default virtual function for the set/get destfinfos
52  vector< string > innerSrc() const;
53  vector< string > innerDest() const;
54 
56  string rttiType() const;
57 
58  private:
59  vector< SrcFinfo* > src_;
60  vector< Finfo* > dest_;
61 };
62 
63 #endif // _SHARED_FINFO_H
string rttiType() const
This always returns void. We need to check the subsidiary Finfos.
const vector< Finfo * > & dest() const
bool addMsg(const Finfo *target, ObjId mid, Element *src) const
Definition: SharedFinfo.cpp:95
const vector< SrcFinfo * > & src() const
vector< string > innerDest() const
Definition: ObjId.h:20
const int numEntries
Definition: proc.cpp:60
const string & name() const
Definition: Finfo.cpp:80
vector< string > innerSrc() const
void registerFinfo(Cinfo *c)
Definition: SharedFinfo.cpp:32
bool strSet(const Eref &tgt, const string &field, const string &arg) const
Definition: SharedFinfo.cpp:42
Definition: Eref.h:26
vector< SrcFinfo * > src_
Definition: SharedFinfo.h:59
SharedFinfo(const string &name, const string &doc, Finfo **entries, unsigned int numEntries)
Definition: SharedFinfo.cpp:16
bool checkTarget(const Finfo *target) const
Definition: SharedFinfo.cpp:74
bool strGet(const Eref &tgt, const string &field, string &returnValue) const
Definition: SharedFinfo.cpp:48
vector< Finfo * > dest_
Definition: SharedFinfo.h:60
Definition: Cinfo.h:18
Definition: Finfo.h:12