aboutsummaryrefslogtreecommitdiff
path: root/examples/persistence/position.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'examples/persistence/position.hxx')
-rw-r--r--examples/persistence/position.hxx26
1 files changed, 2 insertions, 24 deletions
diff --git a/examples/persistence/position.hxx b/examples/persistence/position.hxx
index 3025a29..26b04f5 100644
--- a/examples/persistence/position.hxx
+++ b/examples/persistence/position.hxx
@@ -25,13 +25,7 @@ operator>> (std::istream&, object_type&);
class position
{
public:
- position (float lat = 0, float lon = 0): lat_ (lat), lon_ (lon) {}
-
- float
- lat () const {return lat_;}
-
- float
- lon () const {return lon_;}
+ // Constructors as well as accessor and modifiers not shown.
// XML persistence.
//
@@ -49,25 +43,9 @@ private:
class object
{
public:
- object (const std::string& name, object_type type, unsigned int id)
- : name_ (name), type_ (type), id_ (id) {}
-
- const std::string&
- name () const {return name_;}
-
- object_type
- type () const {return type_;}
-
- unsigned int
- id () const {return id_;}
-
typedef std::vector<position> positions_type;
- positions_type&
- positions () {return positions_;}
-
- const positions_type&
- positions () const {return positions_;}
+ // Constructors as well as accessor and modifiers not shown.
// XML persistence.
//