product_base.hh
Go to the documentation of this file.
/* -*- mia-c++ -*-
*
* This file is part of MIA - a toolbox for medical image analysis
* Copyright (c) Leipzig, Madrid 1999-2017 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
class EXPORT_CORE CProductBase: public CPropertyFlagHolder
{
public:
void set_init_string(const char *init);
const char *get_init_string() const;
void set_module(PPluginModule module);
private:
PPluginModule m_module;
std::string m_init_string;
};
NS_MIA_END
#endif
CProductBase
The base class for all plug-in created object.
Definition product_base.hh:41
CProductBase::set_init_string
void set_init_string(const char *init)
CProductBase::get_init_string
const char * get_init_string() const
CProductBase::set_module
void set_module(PPluginModule module)
CPropertyFlagHolder
This class holds a set of properties.
Definition property_flags.hh:42
NS_MIA_BEGIN
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
Definition defines.hh:33
EXPORT_CORE
#define EXPORT_CORE
Macro to manage Visual C++ style dllimport/dllexport.
Definition defines.hh:101
NS_MIA_END
#define NS_MIA_END
conveniance define to end the mia namespace
Definition defines.hh:36
PPluginModule
std::shared_ptr< CPluginModule > PPluginModule
Definition module.hh:81
module.hh
property_flags.hh