-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathClassFactory.hpp
34 lines (26 loc) · 1.45 KB
/
ClassFactory.hpp
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ClassFactory.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dgonor <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/12/05 17:38:15 by dgonor #+# #+# */
/* Updated: 2018/12/05 17:38:17 by dgonor ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef CLASSFACTORY_HPP
#define CLASSFACTORY_HPP
//#include "ClassOperand.hpp"
#include "ClassIOperand.hpp"
class Factory{
public:
IOperand const * createOperand( eOperandType type, std::string const & value ) const;
private:
IOperand const * createInt8( std::string const & value ) const;
IOperand const * createInt16( std::string const & value ) const;
IOperand const * createInt32( std::string const & value ) const;
IOperand const * createFloat( std::string const & value ) const;
IOperand const * createDouble( std::string const & value ) const;
};
#endif