27 lines
445 B
C++
27 lines
445 B
C++
/* -*- C++ -*- */
|
|
#ifndef FOO_H_
|
|
# define FOO_H_
|
|
|
|
#include <string>
|
|
|
|
int print_something(const char *message);
|
|
int print_something_else(const char *message2);
|
|
|
|
|
|
class SomeObject
|
|
{
|
|
std::string m_prefix;
|
|
public:
|
|
SomeObject (std::string const prefix)
|
|
: m_prefix (prefix) {}
|
|
|
|
int add_prefix (std::string& message) {
|
|
message = m_prefix + message;
|
|
return message.size();
|
|
}
|
|
|
|
};
|
|
|
|
|
|
#endif /* !FOO_H_ */
|