/usr/include/mia-2.0/mia/core/product_base.hh is in libmia-2.0-dev 2.0.13-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | /* -*- mia-c++ -*-
*
* This file is part of MIA - a toolbox for medical image analysis
* Copyright (c) Leipzig, Madrid 1999-2013 Gert Wollny
*
* MIA is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with MIA; if not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef __mia_core_productbase_hh
#define __mia_core_productbase_hh
#include <mia/core/module.hh>
#include <mia/core/property_flags.hh>
NS_MIA_BEGIN
/**
\ingroup plugin
\brief The base class for all plug-in created object.
Base of all objects that are created from within plug-ins using a factory method.
It also holds the creator string for the instance of the created object.
\remark The pointer to the modules should take care that the module is valid until the
object is destroyed.
*/
class EXPORT_CORE CProductBase: public CPropertyFlagHolder {
public:
/**
Set the string used to create this object using its factory.
\param init init string
*/
void set_init_string(const char *init);
/**
\returns the init string used to create this instance
*/
const char *get_init_string() const;
/**
Set the plugin module which holds the code for this object
\param module
\remark In a perfect world, the module could be unloaded after
all instances of the class using its code are destroyed.
Unfortunately, the destructor still required the code after
dereferencing the module.
*/
void set_module(PPluginModule module);
private:
PPluginModule m_module;
std::string m_init_string;
};
NS_MIA_END
#endif
|