dmlite  0.4
Macros
DummyCatalog.cpp File Reference

DummyCatalog implementation. More...

#include <dmlite/cpp/dummy/DummyCatalog.h>
Include dependency graph for DummyCatalog.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

DummyCatalog 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.