File: bsp.h

package info (click to toggle)
pybindgen 0.20.0%2Bdfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,932 kB
  • sloc: python: 15,981; cpp: 1,889; ansic: 617; makefile: 86; sh: 4
file content (29 lines) | stat: -rw-r--r-- 595 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// -*- Mode: C++; c-file-style: "stroustrup"; indent-tabs-mode:nil; -*-
#ifndef   	BSP_H_
# define   	BSP_H_

#include <string>
#include <boost/shared_ptr.hpp>


class Foo
{
    std::string m_datum;
public:

    Foo () : m_datum ("") {}

    Foo (std::string const &datum) : m_datum (datum) {}

    const std::string get_datum () const { return m_datum; }
    
    void set_datum (std::string const &datum) { m_datum = datum; }

    virtual ~Foo() {}

};

void function_that_takes_foo (boost::shared_ptr<Foo> foo);
boost::shared_ptr<Foo> function_that_returns_foo ();

#endif 	    /* !FOO_H_ */