mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-20 01:04:34 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@52999 954022d7-b5bf-4e40-9824-e11837661b57
34 lines
588 B
C++
34 lines
588 B
C++
#pragma once
|
|
#ifndef UTILITY_GETTER_INCLUDE_H_
|
|
#define UTILITY_GETTER_INCLUDE_H_
|
|
|
|
#include <stdexcept>
|
|
|
|
#include "CallTraits.h"
|
|
|
|
namespace getter
|
|
{
|
|
template<typename Type>
|
|
class base_getter
|
|
{
|
|
protected:
|
|
typedef typename NSCallTraits<Type>::param_type Parameter;
|
|
public:
|
|
const Type operator()(Parameter _value) const
|
|
{
|
|
//must_release();
|
|
}
|
|
};
|
|
|
|
template<typename Type>
|
|
class simple : private base_getter<Type>
|
|
{
|
|
public:
|
|
const Type operator ()(Parameter _value) const
|
|
{
|
|
return _value;
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif // UTILITY_GETTER_INCLUDE_H_
|