/tutorial/external/C++/Foo.h

http://github.com/tybor/Liberty · C Header · 21 lines · 10 code · 10 blank · 1 comment · 0 complexity · a5b2be536a37060677f894a40e19e581 MD5 · raw file

  1. // Basic C++ class to test the Liberty Eiffel C++ interface
  2. class Foo {
  3. private:
  4. int integer_attribute;
  5. float real_attribute;
  6. public:
  7. int get_integer();
  8. float get_real();
  9. void set_integer(int i);
  10. void set_real(float r);
  11. };