dmlite  0.6
NotImplemented.h
Go to the documentation of this file.
1 #ifndef _NOTIMPLEMENTED_H
2 #define _NOTIMPLEMENTED_H
3 
4 
5 
6 #define NOT_IMPLEMENTED(f)\
7 f {\
8  throw DmException(DMLITE_SYSERR(ENOSYS), "'%s' does not implement '%s'", this->getImplId().c_str(), __func__);\
9 }
10 
11 
12 
13 #define NOT_IMPLEMENTED_WITHOUT_ID(f)\
14 f {\
15  throw DmException(DMLITE_SYSERR(ENOSYS), "'%s' not implemented", __func__);\
16 }
17 
18 
19 
20 #define FACTORY_NOT_IMPLEMENTED(f) NOT_IMPLEMENTED_WITHOUT_ID(f)
21 
22 
23 
24 #endif