ctkBinaryFileDescriptor.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Library:   CTK
00004  
00005   Copyright (c) 2010  Kitware Inc.
00006 
00007   Licensed under the Apache License, Version 2.0 (the "License");
00008   you may not use this file except in compliance with the License.
00009   You may obtain a copy of the License at
00010 
00011       http://www.commontk.org/LICENSE
00012 
00013   Unless required by applicable law or agreed to in writing, software
00014   distributed under the License is distributed on an "AS IS" BASIS,
00015   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00016   See the License for the specific language governing permissions and
00017   limitations under the License.
00018  
00019 =========================================================================*/
00020 /*=auto=========================================================================
00021 
00022  Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) 
00023  All Rights Reserved.
00024 
00025  See Doc/copyright/copyright.txt
00026  or http://www.slicer.org/copyright/copyright.txt for details.
00027 
00028  Program:   Module Description Parser
00029 
00030 =========================================================================auto=*/
00031 
00032 #ifndef __ctkBinaryFileDescriptor_h
00033 #define __ctkBinaryFileDescriptor_h
00034 
00035 // Qt includes
00036 #include <QString>
00037 
00038 // CTK includes
00039 #include "ctkPimpl.h"
00040 
00041 #include "CTKWidgetsExport.h"
00042 
00045 
00046 class ctkBinaryFileDescriptorPrivate;
00047 
00048 class CTK_WIDGETS_EXPORT ctkBinaryFileDescriptor
00049 {
00050 public:
00051   ctkBinaryFileDescriptor();
00052   ctkBinaryFileDescriptor(const QString& _fileName);
00053   virtual ~ctkBinaryFileDescriptor();
00054 
00055   QString fileName()const;
00056   void setFileName(const QString& _fileName);
00057 
00059   bool load();
00060 
00062   bool unload();
00063 
00064   bool isLoaded() const;
00065 
00067   void* resolve(const char * symbol);
00068 
00069 private:
00070   CTK_DECLARE_PRIVATE(ctkBinaryFileDescriptor);
00071 
00072 };
00073 
00074 #endif
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines