dmlite  0.4
Macros
DummyPool.cpp File Reference

DummyPoolManager implementation. More...

#include <dmlite/cpp/dummy/DummyPool.h>
Include dependency graph for DummyPool.cpp:

Macros

#define DELEGATE(method,...)
 Little of help here to avoid redundancy.
#define DELEGATE_RETURN(method,...)
 Little of help here to avoid redundancy.

Detailed Description

DummyPoolManager implementation.

It makes sense as a base for other decorator plug-ins.

Author:
Alejandro Álvarez Ayllón aalva.nosp@m.rez@.nosp@m.cern..nosp@m.ch

Macro Definition Documentation

#define DELEGATE (   method,
  ... 
)
Value:
if (this->decorated_ == NULL)\
throw DmException(DM_NOT_IMPLEMENTED, "There is no plugin in the stack that implements "#method);\
this->decorated_->method(__VA_ARGS__);

Little of help here to avoid redundancy.

#define DELEGATE_RETURN (   method,
  ... 
)
Value:
if (this->decorated_ == NULL)\
throw DmException(DM_NOT_IMPLEMENTED, "There is no plugin in the stack that implements "#method);\
return this->decorated_->method(__VA_ARGS__);

Little of help here to avoid redundancy.