Debian Codegraph @

examples/XSpp-Example/src/Animal.cc

raw
1 #include "Animal.h"
2
3 #include <string>
4 #include <iostream>
5 #include <exception>
6
7 Animal::Animal(const std::string& name) :
8 fName(name)
9 {}
10
11 void
12 Animal::SetName(const std::string& newName)
13 {
14 fName = newName;
15 }
16
17 std::string
18 Animal::GetName()
19 const
20 {
21 return fName;
22 }
23
24 void
25 Animal::MakeSound()
26 const
27 {
28 throw CannotMakeSoundException();
29 }
30