00001 /* 00002 * Copyright (c) 2001-2004 MUSIC TECHNOLOGY GROUP (MTG) 00003 * UNIVERSITAT POMPEU FABRA 00004 * 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 * 00020 */ 00021 00022 00023 #ifndef __PROCESSINGDEFINITIONADAPTER_HXX__ 00024 #define __PROCESSINGDEFINITIONADAPTER_HXX__ 00025 00026 #include "Component.hxx" 00027 #include <string> 00028 #include "Text.hxx" 00029 00030 namespace CLAM 00031 { 00032 class Processing; 00033 00034 class ProcessingDefinitionAdapter :public Component 00035 { 00036 private: 00037 Processing * mAdaptee; 00038 Text mName; 00039 Text mPosition; 00040 Text mSize; 00041 00042 public: 00043 ProcessingDefinitionAdapter( Processing * adaptee = 0, const std::string & name = "", const std::string & position="", const std::string & size = ""); 00044 virtual ~ProcessingDefinitionAdapter(); 00045 Processing * GetProcessing(){return mAdaptee;} 00046 const std::string & GetName(){return mName;} 00047 const std::string & GetPosition(){return mPosition;} 00048 const std::string & GetSize(){return mSize;} 00049 00050 public: 00051 //* Returns the class name 00052 const char * GetClassName() const 00053 { 00054 return "ProcessingDefinitionAdapter"; 00055 } 00056 00057 virtual void StoreOn (Storage & store) const; 00058 00064 virtual void LoadFrom (Storage & store); 00065 }; 00066 00067 } // namespace CLAM 00068 00069 #endif // __PROCESSINGDEFINITIONADAPTER_HXX__ 00070