MOOSE - Multiscale Object Oriented Simulation Environment
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Mstring.cpp
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-2010 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
#include "
header.h
"
10
#include "
Mstring.h
"
11
12
const
Cinfo
*
Mstring::initCinfo
()
13
{
15
// Field Definitions
17
static
ValueFinfo< Mstring, string >
thisFinfo(
18
"this"
,
19
"Access function for entire Mstring object."
,
20
&
Mstring::setThis
,
21
&
Mstring::getThis
22
);
23
static
ValueFinfo< Mstring, string >
valueFinfo(
24
"value"
,
25
"Access function for value field of Mstring object,"
26
"which happens also to be the entire contents of the object."
,
27
&
Mstring::setThis
,
28
&
Mstring::getThis
29
);
30
31
static
Finfo
* mStringFinfos[] = {
32
&thisFinfo,
// Value
33
&valueFinfo,
// Value
34
};
35
36
static
Dinfo< Mstring >
dinfo;
37
static
Cinfo
mStringCinfo
(
38
"Mstring"
,
39
Neutral::initCinfo
(),
40
mStringFinfos,
41
sizeof
( mStringFinfos ) /
sizeof
(
Finfo
* ),
42
&dinfo
43
);
44
45
return
&
mStringCinfo
;
46
}
47
48
static
const
Cinfo
*
mStringCinfo
=
Mstring::initCinfo
();
49
50
Mstring::Mstring
()
51
: value_(
""
)
52
{
53
;
54
}
55
56
Mstring::Mstring
(
string
val )
57
: value_( val )
58
{
59
;
60
}
61
62
void
Mstring::setThis
(
string
v )
63
{
64
value_
= v;
65
}
66
67
string
Mstring::getThis
()
const
68
{
69
return
value_
;
70
}
71
Mstring::initCinfo
static const Cinfo * initCinfo()
Definition:
Mstring.cpp:12
Mstring::setThis
void setThis(string v)
Definition:
Mstring.cpp:62
header.h
ValueFinfo
Definition:
ValueFinfo.h:36
Dinfo
Definition:
Dinfo.h:60
mStringCinfo
static const Cinfo * mStringCinfo
Definition:
Mstring.cpp:48
Mstring.h
Mstring::value_
string value_
Definition:
Mstring.h:36
Mstring::getThis
string getThis() const
Definition:
Mstring.cpp:67
Neutral::initCinfo
static const Cinfo * initCinfo()
Definition:
Neutral.cpp:16
Mstring::Mstring
Mstring()
Definition:
Mstring.cpp:50
Cinfo
Definition:
Cinfo.h:18
Finfo
Definition:
Finfo.h:12
moose-core
builtins
Mstring.cpp
Generated on Tue Sep 4 2018 09:05:32 for MOOSE - Multiscale Object Oriented Simulation Environment by
1.8.6