BWAPI
SPAR/AIModule/BWTA/vendors/CGAL/CGAL/CORE/geombase.h
Go to the documentation of this file.
00001 /******************************************************************
00002  * Core Library Version 1.7, August 2004
00003  * Copyright (c) 1995-2002 Exact Computation Project
00004  * 
00005  * File: geombase.h
00006  * Synopsis:
00007  *      Code that is common to (and included by) geometry2d.h 
00008  *      and geometry3d.h
00009  *
00010  * Written by
00011  *       Shubin Zhao (shubinz@cs.nyu.edu) (2001)
00012  *
00013  * WWW URL: http://cs.nyu.edu/exact/
00014  * Email: exact@cs.nyu.edu
00015  *
00016  * $Id: geombase.h 37060 2007-03-13 18:10:39Z reichel $
00017  *****************************************************************/
00018 
00019 #ifndef CORE_GEOMETRY_H
00020 #define CORE_GEOMETRY_H
00021 
00022 #include <CGAL/CORE/CORE.h>
00023 
00024 
00025 //base class for geom2d and geom3d classes
00026 class GeomObj {
00027 
00028 public:
00029 
00030   // Exceptions
00031 
00032   class Exception {
00033         public:
00034           virtual void print_message( char* msg ) { std::cerr << msg <<std::endl; }
00035   };
00036 
00037   class NoIntersection : public Exception { };
00038 
00039   class IllegalOperation : public Exception { };
00040 
00041   virtual int dim() const { return -1; }
00042 
00043 }; //class GeomObj
00044 
00045 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines