forked from BhallaLab/moose-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDestFinfo.h
40 lines (34 loc) · 1.36 KB
/
DestFinfo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**********************************************************************
** This program is part of 'MOOSE', the
** Messaging Object Oriented Simulation Environment.
** Copyright (C) 2003-2010 Upinder S. Bhalla. and NCBS
** It is made available under the terms of the
** GNU Lesser General Public License version 2.1
** See the file COPYING.LIB for the full notice.
**********************************************************************/
#ifndef _DEST_FINFO_H
#define _DEST_FINFO_H
/*
* DestFinfo manages function requests. All messages terminate on
* the functions stored in DestFinfos. No templates here, as all the
* type-specific work is done by the OpFunc.
*/
class DestFinfo : public Finfo {
public:
~DestFinfo();
DestFinfo(const string& name, const string& doc, OpFunc* func);
void registerFinfo(Cinfo* c);
bool strSet(const Eref& tgt, const string& field, const string& arg) const;
bool strGet(const Eref& tgt, const string& field,
string& returnValue) const;
const OpFunc* getOpFunc() const;
FuncId getFid() const;
///////////////////////////////////////////////////////////////
// Override the default virtual function for the rtti info
///////////////////////////////////////////////////////////////
string rttiType() const;
private:
OpFunc* func_;
FuncId fid_;
};
#endif // _DEST_FINFO_H