/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
- // Basic C++ class to test the Liberty Eiffel C++ interface
- #include "Foo.h"
- int Foo::get_integer() {
- return integer_attribute;
- }
- float Foo::get_real() {
- return real_attribute;
- }
- void Foo::set_integer(int i) {
- integer_attribute = i;
- }
- void Foo::set_real(float r) {
- real_attribute = r;
- }