-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstancepointerinterface.hpp
More file actions
42 lines (31 loc) · 993 Bytes
/
instancepointerinterface.hpp
File metadata and controls
42 lines (31 loc) · 993 Bytes
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
/// Copyright (C) 2017 by Boguslaw Rymut
///
/// This file is distributed under the Apache 2.0 License
/// See LICENSE for details.
#ifndef MEXCPPCLASS_INSTANCEPOINTERINTERFACE_HPP_
#define MEXCPPCLASS_INSTANCEPOINTERINTERFACE_HPP_
#include "mexcppclass/export.hpp"
namespace mexcppclass {
class ModuleInterface;
class MEXCPPCLASS_EXPORT InstancePointerInterface {
public:
/*! \brief Raw pointer type definition
*/
typedef ModuleInterface *Pointer;
/*! \biref Get raw pointer
* \return raw pointer
*/
virtual Pointer GetPointer() const = 0;
protected:
/*! \brief Pure virtual destructor
*/
virtual ~InstancePointerInterface() = 0;
};
inline InstancePointerInterface::~InstancePointerInterface() {
}
} // namespace mexcppclass
extern "C" {
MEXCPPCLASS_EXPORT void DeleteInstancePointerInterface(
mexcppclass::InstancePointerInterface *obj);
} // extern "C"
#endif // MEXCPPCLASS_INSTANCEPOINTERINTERFACE_HPP_