connection.H

00001 /*
00002  * This file is part of the "Archon" framework.
00003  * (http://files3d.sourceforge.net)
00004  *
00005  * Copyright © 2006 by Kristian Spangsege and Brian Kristiansen.
00006  *
00007  * Permission to use, copy, modify, and distribute this software and
00008  * its documentation under the terms of the GNU General Public License is
00009  * hereby granted. No representations are made about the suitability of
00010  * this software for any purpose. It is provided "as is" without express
00011  * or implied warranty. See the GNU General Public License
00012  * (http://www.gnu.org/copyleft/gpl.html) for more details.
00013  *
00014  * The characters in this file are ISO8859-1 encoded.
00015  *
00016  * The documentation in this file is in "Doxygen" style
00017  * (http://www.doxygen.org).
00018  */
00019 
00020 #ifndef ARCHON_DISPLAY_CONNECTION_H
00021 #define ARCHON_DISPLAY_CONNECTION_H
00022 
00023 #include <stdexcept>
00024 #include <string>
00025 
00026 #include <archon/util/ref.H>
00027 #include <archon/display/implementation.H>
00028 #include <archon/display/screen.H>
00029 
00030 namespace Archon
00031 {
00032   namespace Display
00033   {
00034     using namespace std;
00035     using namespace Utilities;
00036 
00037     // Fallback declarations. A fallback declaration for class Foo is
00038     // needed when the header that defines Foo includes this
00039     // header. In this case this header will not include "foo.H" due
00040     // to include guards, and Foo would be unknown.
00041     struct Implementation;
00042     struct Screen;
00043 
00044 
00054     struct Connection: virtual RefObjectBase
00055     {
00061       virtual Ref<Implementation> getImplementation() = 0;
00062 
00070       virtual Ref<Screen> getDefaultScreen() = 0;
00071 
00079       virtual int getNumberOfScreens() = 0;
00080 
00090       virtual Ref<Screen> getScreen(int index) throw(out_of_range) = 0;
00091     };
00092   }
00093 }
00094 
00095 #endif // ARCHON_DISPLAY_CONNECTION_H

Generated on Sun Jul 30 22:55:41 2006 for Archon by  doxygen 1.4.4