blob: cb56d78240ffb6808e194a01321bbe103fcc26d3 (
plain)
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
|
/**
* Function.cpp
*
* Implementation for the function class
*
* @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
* @copyright 2013 Copernica BV
*/
#include "includes.h"
/**
* Set up namespace
*/
namespace PhpCpp {
/**
* Constructor
* @param name Name of the function
* @param arguments The arguments that can be passed to the function
*/
Function::Function(const std::string &name, const std::initializer_list<Argument> &arguments)
{
// create callable object
_callable = new Callable(name, arguments);
}
/**
* Destructor
*/
Function::~Function()
{
if (_callable) delete _callable;
}
/**
* End of namespace
*/
}
|