Main Page - Header
Author: The Inti Development Team

Reference Manual

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

# registry.h

Go to the documentation of this file.

    00001 /*  Inti: Integrated Foundation Classes
    00002  *  Copyright (C) 2002 The Inti Development Team.
    00003  *
    00004  *  This program is free software; you can redistribute it and/or modify
    00005  *  it under the terms of the GNU General Public License as published by
    00006  *  the Free Software Foundation; either version 2 of the License, or
    00007  *  (at your option) any later version.
    00008  *
    00009  *  This program is distributed in the hope that it will be useful,
    00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    00012  *  GNU Library General Public License for more details.
    00013  *
    00014  *  You should have received a copy of the GNU Library General Public License
    00015  *  along with this program; if not, write to the Free Software
    00016  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    00017  */
    00018
    00024
    00025 #ifndef INTI_ATK_REGISTRY_H
    00026 #define INTI_ATK_REGISTRY_H
    00027
    00028 #ifndef INTI_ATK_G_OBJECT_H
    00029 #include <inti/glib/object.h>
    00030 #endif
    00031
    00032 #ifndef __ATK_REGISTRY_H__
    00033 #include <atk/atkregistry.h>
    00034 #endif
    00035
    00036 namespace Inti {
    00037
    00038 namespace Atk {
    00039
    00040 class ObjectFactory;
    00041 class RegistryClass;
    00042
    00048
    00049 class Registry : public G::Object
    00050 {
    00051         friend class G::Object;
    00052         friend class RegistryClass;
    00053
    00054         Registry(const Registry&);
    00055         Registry& operator=(const Registry&);
    00056
    00057 protected:
    00060
    00061         explicit Registry(AtkRegistry *registry, bool reference = true);
    00068
    00070
    00071 public:
    00074
    00075         virtual ~Registry();
    00077
    00079
    00080         static Registry* get_default();
    00088
    00091
    00092         AtkRegistry* atk_registry() const { return (AtkRegistry*)instance; }
    00094
    00095         AtkRegistryClass* atk_registry_class() const;
    00097
    00098         operator AtkRegistry* () const;
    00100
    00101         GType get_factory_type(GType type) const;
    00105
    00106         ObjectFactory* get_factory(GType type) const;
    00110
    00114
    00115         void set_factory_type(GType type, GType factory_type);
    00123
    00125 };
    00126
    00127 } // namespace Atk
    00128
    00129 } // namespace Inti
    00130
    00131 #endif // INTI_ATK_REGISTRY_H
    00132

Main Page - Footer