PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/tutorial/external/C++/Foo.cpp

http://github.com/tybor/Liberty
C++ | 19 lines | 13 code | 5 blank | 1 comment | 0 complexity | 6acd538e7e007856281d04a242f31778 MD5 | raw file
 1// Basic C++ class to test the Liberty Eiffel C++ interface
 2
 3#include "Foo.h"
 4
 5int Foo::get_integer() {
 6  return integer_attribute;
 7}
 8
 9float Foo::get_real() {
10  return real_attribute;
11}
12
13void Foo::set_integer(int i) {
14  integer_attribute = i;
15}
16
17void Foo::set_real(float r) {
18  real_attribute = r;
19}