2 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 * Copyright (C) 2009-2010 - DIGITEO - Bruno JOFRET
4 * Copyright (C) 2009-2009 - DIGITEO - Antoine ELIAS
6 * Copyright (C) 2012 - 2016 - Scilab Enterprises
8 * This file is hereby licensed under the terms of the GNU GPL v2.0,
9 * pursuant to article 5.3.4 of the CeCILL v.2.1.
10 * This file was originally licensed under the terms of the CeCILL v2.1,
11 * and continues to be available under such terms.
12 * For more information, see the COPYING file which you should have received
13 * along with this program.
17 #ifndef __MACROFILE_HXX__
18 #define __MACROFILE_HXX__
21 #include "callable.hxx"
26 class EXTERN_AST MacroFile : public Callable
29 MacroFile(): Callable() {};
30 MacroFile(const std::wstring& _stName, const std::wstring& _stPath, const std::wstring& _stModule);
33 //FIXME : Should not return NULL
36 inline ScilabType getType(void)
38 return ScilabMacroFile;
40 inline ScilabId getId(void)
52 bool toString(std::wostringstream& ostr);
54 Callable::ReturnValue call(typed_list &in, optional_list &opt, int _iRetCount, typed_list &out) override;
57 Macro* getMacro(void);
59 void setLines(int _iFirstLine, int _iLastLine);
61 bool getMemory(long long* _piSize, long long* _piSizePlusType);
63 /* return type as string ( double, int, cell, list, ... )*/
64 virtual std::wstring getTypeStr() const
68 /* return type as short string ( s, i, ce, l, ... )*/
69 virtual std::wstring getShortTypeStr() const
74 inline const std::wstring & getPath()
79 virtual int getNbInputArgument(void);
80 virtual int getNbOutputArgument(void);
82 bool operator==(const InternalType& it);
85 std::wstring m_stPath;
91 #endif /* !__MACROFILE_HXX__ */