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

vos/gui/gui/input_file.cc

Go to the documentation of this file.
00001 /* $Id: input_file.cc,v 1.3 2003/07/23 00:17:20 reed Exp $ */
00002 
00003 /*  Copyright (C) 2003 Reed Hedges <reed@interreality.org>
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Lesser General Public
00007     License as published by the Free Software Foundation; either
00008     version 2 of the License, or (at your option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Lesser General Public License for more details.
00014 
00015     You should have received a copy of the GNU Lesser General Public
00016     License along with this library; if not, write to the Free Software
00017     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
00018 
00019 */
00020 
00021 
00022 
00023 #include <vos/corelibs/vos/vos.hh>
00024 #include <vos/metaobjects/property/property.hh>
00025 #include "input_file.hh"
00026 
00027 using namespace VOSGUI;
00028 
00029 /* Constructor */
00030 FileInput::FileInput(MetaObject* s) : MetaObject(s), Widget(s), Input(s)
00031 {
00032 }
00033 
00034 /* Destructor */
00035 FileInput::~FileInput() {
00036 }
00037 
00038 
00039 LocalFileInput::LocalFileInput(MetaObject* s) : FileInput(s), MetaObject(s), LocalWidget(s), Widget(s), LocalInput(s), Input(s)
00040 {
00041 }
00042 
00043 LocalFileInput::~LocalFileInput() {
00044 }
00045 
00046 
00047 RemoteFileInput::RemoteFileInput(MetaObject* s) : FileInput(s), MetaObject(s), Widget(s), RemoteWidget(s), RemoteInput(s), Input(s)
00048 {
00049 }
00050 
00051 RemoteFileInput::~RemoteFileInput() {
00052 }
00053 
00054 /* Return type string ("gui:widget.input") */
00055 
00056 const string FileInput::getType() {
00057     return string("gui:widget.input.file");
00058 }
00059 
00060 /* Register extenders with libvos MetaFactory */
00061 void FileInput::registerExtenders() {
00062     LocalSite::addLocalObjectExtension(typeid(LocalFileInput).name(), &LocalFileInput::new_LocalFileInput);
00063     LocalSite::addLocalObjectExtension(typeid(FileInput).name(), &LocalFileInput::new_LocalFileInput);
00064     LocalSite::addLocalObjectExtension("gui:widget.input.file", &LocalFileInput::new_LocalFileInput);
00065     RemoteSite::addRemoteObjectExtension(typeid(RemoteFileInput).name(), &RemoteFileInput::new_RemoteFileInput);
00066     RemoteSite::addRemoteObjectExtension(typeid(FileInput).name(), &RemoteFileInput::new_RemoteFileInput);
00067     RemoteSite::addRemoteObjectExtension("gui:widget.input.file", &RemoteFileInput::new_RemoteFileInput);
00068 }
00069 
00070 
00071 /* Generators for factory */
00072 
00073 MetaObject* LocalFileInput::new_LocalFileInput(MetaObject *s, const string& type) {
00074     LocalFileInput* o = new LocalFileInput(s);
00075     return o;
00076 }
00077 
00078 MetaObject* RemoteFileInput::new_RemoteFileInput(MetaObject *s, const string& type) {
00079     return new RemoteFileInput(s);
00080 }
00081 

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