Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Examples

vos/corelibs/tracking/tracker.hh

Go to the documentation of this file.
00001 /*
00002     This file is part of the Virtual Object System of
00003     the Interreality project (http://interreality.org).
00004 
00005     Copyright (C) 2001, 2002 Peter Amstutz, Reed Hedges
00006 
00007     This software was written at the University of Massachusetts with
00008     support from NSF grant #EIA 9703217
00009 
00010     This library is free software; you can redistribute it and/or
00011     modify it under the terms of the GNU Lesser General Public
00012     License as published by the Free Software Foundation; either
00013     version 2 of the License, or (at your option) any later version.
00014 
00015     This library is distributed in the hope that it will be useful,
00016     but WITHOUT ANY WARRANTY; without even the implied warranty of
00017     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018     Lesser General Public License for more details.
00019 
00020     You should have received a copy of the GNU Lesser General Public
00021     License along with this library; if not, write to the Free Software
00022     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
00023 
00024     Peter Amstutz <tetron@interreality.org>
00025     Reed Hedges <reed@zerohour.net>
00026 */
00027 
00028 
00029 #ifndef _TRACKER_HH_
00030 #define _TRACKER_HH_
00031 
00032 #include <stdexcept>
00033 #include <string>
00034 
00035 class Tracker 
00036 {   
00037 private:
00038     unsigned int id;
00039 
00040 public:
00041 
00042     void setID(unsigned int new_id) {
00043         id = new_id;
00044     }
00045 
00046     unsigned int getID() {
00047         return id;
00048     }
00049 
00050     class DeviceError : public std::runtime_error {
00051     public:
00052         DeviceError(const std::string& why) : std::runtime_error(why) { }
00053     };
00054 };
00055 
00056 
00057 #endif

Generated on Tue Aug 12 03:55:38 2003 for Interreality Project - VOS by doxygen 1.3.2