\hypertarget{group__object__functions}{}\doxysection{Object Functions} \label{group__object__functions}\index{Object Functions@{Object Functions}} \doxysubsection*{Functions} \begin{DoxyCompactItemize} \item auto \mbox{\hyperlink{group__object__functions_ga22ceceed9c9da64694045ef7a32409c4}{Qore\+::call\+Object\+Method}} (object obj, \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} method,...) \begin{DoxyCompactList}\small\item\em Calls a method of an object, passing the remainder of the arguments to the function as arguments to the method. \end{DoxyCompactList}\item nothing \mbox{\hyperlink{group__object__functions_ga861f336da074c21b56e747f402fa42e8}{Qore\+::call\+Object\+Method}} () \begin{DoxyCompactList}\small\item\em This function variant does nothing at all; it is only included for backwards-\/compatibility with qore prior to version 0.\+8.\+0 for functions that would ignore type errors in arguments. \end{DoxyCompactList}\item auto \mbox{\hyperlink{group__object__functions_ga1aa450b9391a7e36b01caf570d458ab5}{Qore\+::call\+Object\+Method\+Args}} (object obj, \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} method, \+\_\+\+\_\+7\+\_\+ softlist$<$ auto $>$ varg) \begin{DoxyCompactList}\small\item\em Calls a method of an object, using the optional third argument as the argument list to the method. \end{DoxyCompactList}\item nothing \mbox{\hyperlink{group__object__functions_ga79bd6285b75f19740d2584018d4aee3f}{Qore\+::call\+Object\+Method\+Args}} () \begin{DoxyCompactList}\small\item\em This function variant does nothing at all; it is only included for backwards-\/compatibility with qore prior to version 0.\+8.\+0 for functions that would ignore type errors in arguments. \end{DoxyCompactList}\item auto \mbox{\hyperlink{group__object__functions_ga733217c233efed0557e133a6cc45189f}{Qore\+::call\+\_\+object\+\_\+method}} (object obj, \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} method,...) \begin{DoxyCompactList}\small\item\em Calls a method of an object, passing the remainder of the arguments to the function as arguments to the method. \end{DoxyCompactList}\item auto \mbox{\hyperlink{group__object__functions_ga3f3c875b6632a9b028a5d63be30bec14}{Qore\+::call\+\_\+object\+\_\+method\+\_\+args}} (object obj, \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} method, \+\_\+\+\_\+7\+\_\+ softlist$<$ auto $>$ varg) \begin{DoxyCompactList}\small\item\em Calls a method of an object, using the optional third argument as the argument list to the method. \end{DoxyCompactList}\item auto \mbox{\hyperlink{group__object__functions_ga94ac4c8106c0f948e95f3e445d7909ad}{Qore\+::call\+\_\+pseudo}} (any val, \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} meth,...) \begin{DoxyCompactList}\small\item\em calls a pseudo-\/method on the given value \end{DoxyCompactList}\item auto \mbox{\hyperlink{group__object__functions_ga87ca75da87ef4242a4b1ce3a9e5d188b}{Qore\+::call\+\_\+pseudo\+\_\+args}} (any val, \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} meth, \+\_\+\+\_\+7\+\_\+ softlist$<$ auto $>$ argv) \begin{DoxyCompactList}\small\item\em calls a pseudo-\/method on the given value with arguments given as a list \end{DoxyCompactList}\item auto \mbox{\hyperlink{group__object__functions_ga46a72b2a2a84282c5125b6fd7a2e6b23}{Qore\+::call\+\_\+static\+\_\+method}} (\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} class\+\_\+name, \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} method,...) \begin{DoxyCompactList}\small\item\em Calls a static method of an object, passing the arguments to the function as arguments to the method. \end{DoxyCompactList}\item auto \mbox{\hyperlink{group__object__functions_gaf3059a3551575f93e04f2f58ae0ab4c4}{Qore\+::call\+\_\+static\+\_\+method\+\_\+args}} (\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} class\+\_\+name, \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} method, \+\_\+\+\_\+7\+\_\+ softlist$<$ auto $>$ call\+\_\+args) \begin{DoxyCompactList}\small\item\em Calls a static method of an object, passing the arguments to the function as arguments to the method. \end{DoxyCompactList}\item object \mbox{\hyperlink{group__object__functions_ga6a929dc065cfb0b20639ac815be9cad3}{Qore\+::create\+\_\+object}} (\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} class\+\_\+name,...) \begin{DoxyCompactList}\small\item\em creates an object from the class name (which can include a namespace path) and optionally any arguments for the constructor \end{DoxyCompactList}\item object \mbox{\hyperlink{group__object__functions_ga6eaee4a61dd7e3f58de1dab76154397f}{Qore\+::create\+\_\+object\+\_\+args}} (\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} class\+\_\+name, \+\_\+\+\_\+7\+\_\+ softlist$<$ auto $>$ argv) \begin{DoxyCompactList}\small\item\em creates an object from the class name (which can include a namespace path) and optionally any arguments for the constructor \end{DoxyCompactList}\item \mbox{\hyperlink{group__type__conversion__functions_ga4b52a1cbee7a3aed46c32cb0a938629c}{list}} \mbox{\hyperlink{group__object__functions_ga88b51a14acbe008f2e60fca211b98a50}{Qore\+::get\+Method\+List}} (object obj) \begin{DoxyCompactList}\small\item\em Returns a list of strings of the names of the methods of the class of the object passed as a parameter. \end{DoxyCompactList}\item nothing \mbox{\hyperlink{group__object__functions_ga380a58621dd27a188a2c8325cce1f9ff}{Qore\+::get\+Method\+List}} () \begin{DoxyCompactList}\small\item\em This function variant does nothing at all; it is only included for backwards-\/compatibility with qore prior to version 0.\+8.\+0 for functions that would ignore type errors in arguments. \end{DoxyCompactList}\item \mbox{\hyperlink{group__type__conversion__functions_ga4b52a1cbee7a3aed46c32cb0a938629c}{list}}$<$ \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} $>$ \mbox{\hyperlink{group__object__functions_gaaf374f86d44e428d57a23caee48374af}{Qore\+::get\+\_\+method\+\_\+list}} (object obj) \begin{DoxyCompactList}\small\item\em Returns a list of strings of the names of the methods of the class of the object passed as a parameter. \end{DoxyCompactList}\end{DoxyCompactItemize} \doxysubsection{Detailed Description} Object functions \doxysubsection{Function Documentation} \mbox{\Hypertarget{group__object__functions_ga733217c233efed0557e133a6cc45189f}\label{group__object__functions_ga733217c233efed0557e133a6cc45189f}} \index{Object Functions@{Object Functions}!call\_object\_method@{call\_object\_method}} \index{call\_object\_method@{call\_object\_method}!Object Functions@{Object Functions}} \doxysubsubsection{\texorpdfstring{call\_object\_method()}{call\_object\_method()}} {\footnotesize\ttfamily auto Qore\+::call\+\_\+object\+\_\+method (\begin{DoxyParamCaption}\item[{object}]{obj, }\item[{\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}}}]{method, }\item[{}]{... }\end{DoxyParamCaption})} Calls a method of an object, passing the remainder of the arguments to the function as arguments to the method. \begin{DoxyParams}{Parameters} {\em obj} & the object to use for the call \\ \hline {\em method} & the method to call \\ \hline {\em ...} & any additional arguments to the method\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} the value returned by the method call \end{DoxyReturn} \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{auto result = \mbox{\hyperlink{group__object__functions_ga733217c233efed0557e133a6cc45189f}{call\_object\_method}}(obj, \textcolor{stringliteral}{"{}method"{}}, arg1, arg2);} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyExceptions}{Exceptions} {\em METHOD-\/\+DOES-\/\+NOT-\/\+EXIST} & The named method does not exist in this class \\ \hline {\em ILLEGAL-\/\+EXPLICIT-\/\+METHOD-\/\+CALL} & The named method may not be called explicitly \\ \hline {\em METHOD-\/\+IS-\/\+PRIVATE} & The named method is private and therefore can only be called within the class \\ \hline {\em BASE-\/\+CLASS-\/\+IS-\/\+PRIVATE} & The named method is a member of a privately inherited base class\\ \hline \end{DoxyExceptions} \begin{DoxyNote}{Note} the method called could cause additional exceptions to be thrown \end{DoxyNote} \begin{DoxySince}{Since} Qore 0.\+8.\+12 as a replacement for deprecated camel-\/case \mbox{\hyperlink{group__object__functions_ga22ceceed9c9da64694045ef7a32409c4}{call\+Object\+Method()}} \end{DoxySince} \begin{DoxySeeAlso}{See also} \begin{DoxyItemize} \item \mbox{\hyperlink{group__object__functions_ga3f3c875b6632a9b028a5d63be30bec14}{call\+\_\+object\+\_\+method\+\_\+args()}} \item \mbox{\hyperlink{group__object__functions_ga46a72b2a2a84282c5125b6fd7a2e6b23}{call\+\_\+static\+\_\+method()}} \item \mbox{\hyperlink{group__object__functions_gaf3059a3551575f93e04f2f58ae0ab4c4}{call\+\_\+static\+\_\+method\+\_\+args()}} \end{DoxyItemize} \end{DoxySeeAlso} \mbox{\Hypertarget{group__object__functions_ga3f3c875b6632a9b028a5d63be30bec14}\label{group__object__functions_ga3f3c875b6632a9b028a5d63be30bec14}} \index{Object Functions@{Object Functions}!call\_object\_method\_args@{call\_object\_method\_args}} \index{call\_object\_method\_args@{call\_object\_method\_args}!Object Functions@{Object Functions}} \doxysubsubsection{\texorpdfstring{call\_object\_method\_args()}{call\_object\_method\_args()}} {\footnotesize\ttfamily auto Qore\+::call\+\_\+object\+\_\+method\+\_\+args (\begin{DoxyParamCaption}\item[{object}]{obj, }\item[{\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}}}]{method, }\item[{\+\_\+\+\_\+7\+\_\+ softlist$<$ auto $>$}]{varg }\end{DoxyParamCaption})} Calls a method of an object, using the optional third argument as the argument list to the method. \begin{DoxyParams}{Parameters} {\em obj} & the object to use for the call \\ \hline {\em method} & the method to call \\ \hline {\em varg} & any additional arguments to the method\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} the value returned by the method call \end{DoxyReturn} \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{auto result = \mbox{\hyperlink{group__object__functions_ga3f3c875b6632a9b028a5d63be30bec14}{call\_object\_method\_args}}(obj, \textcolor{stringliteral}{"{}method"{}}, arglist);} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyExceptions}{Exceptions} {\em METHOD-\/\+DOES-\/\+NOT-\/\+EXIST} & The named method does not exist in this class \\ \hline {\em ILLEGAL-\/\+EXPLICIT-\/\+METHOD-\/\+CALL} & The named method may not be called explicitly \\ \hline {\em METHOD-\/\+IS-\/\+PRIVATE} & The named method is private and therefore can only be called within the class \\ \hline {\em BASE-\/\+CLASS-\/\+IS-\/\+PRIVATE} & The named method is a member of a privately inherited base class\\ \hline \end{DoxyExceptions} \begin{DoxyNote}{Note} the method called could cause additional exceptions to be thrown \end{DoxyNote} \begin{DoxySince}{Since} Qore 0.\+8.\+12 as a replacement for deprecated camel-\/case \mbox{\hyperlink{group__object__functions_ga1aa450b9391a7e36b01caf570d458ab5}{call\+Object\+Method\+Args()}} \end{DoxySince} \begin{DoxySeeAlso}{See also} \begin{DoxyItemize} \item \mbox{\hyperlink{group__object__functions_ga733217c233efed0557e133a6cc45189f}{call\+\_\+object\+\_\+method()}} \item \mbox{\hyperlink{group__object__functions_ga46a72b2a2a84282c5125b6fd7a2e6b23}{call\+\_\+static\+\_\+method()}} \item \mbox{\hyperlink{group__object__functions_gaf3059a3551575f93e04f2f58ae0ab4c4}{call\+\_\+static\+\_\+method\+\_\+args()}} \end{DoxyItemize} \end{DoxySeeAlso} \mbox{\Hypertarget{group__object__functions_ga94ac4c8106c0f948e95f3e445d7909ad}\label{group__object__functions_ga94ac4c8106c0f948e95f3e445d7909ad}} \index{Object Functions@{Object Functions}!call\_pseudo@{call\_pseudo}} \index{call\_pseudo@{call\_pseudo}!Object Functions@{Object Functions}} \doxysubsubsection{\texorpdfstring{call\_pseudo()}{call\_pseudo()}} {\footnotesize\ttfamily auto Qore\+::call\+\_\+pseudo (\begin{DoxyParamCaption}\item[{any}]{val, }\item[{\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}}}]{meth, }\item[{}]{... }\end{DoxyParamCaption})} calls a pseudo-\/method on the given value \begin{DoxyParams}{Parameters} {\em val} & the value to call the pseudo-\/method on \\ \hline {\em meth} & the string method name of the pseudo-\/method to call \\ \hline {\em ...} & any other arguments to the method\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} the return value of the pseudo-\/method \end{DoxyReturn} \begin{DoxySeeAlso}{See also} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9}{Qore\+::zzz8valuezzz9}} for the class hierarchy of pseudo-\/classes \end{DoxySeeAlso} \begin{DoxyNote}{Note} this function can be used for security to ensure that a given pseudo-\/method of the \mbox{\hyperlink{class_qore_1_1zzz8objectzzz9}{Qore\+::zzz8objectzzz9}} class is called, as by default if a method of the same name is implemented by the object\textquotesingle{}s class, the class method will be called instead. \end{DoxyNote} \begin{DoxySince}{Since} Qore 0.\+8.\+5 \end{DoxySince} \mbox{\Hypertarget{group__object__functions_ga87ca75da87ef4242a4b1ce3a9e5d188b}\label{group__object__functions_ga87ca75da87ef4242a4b1ce3a9e5d188b}} \index{Object Functions@{Object Functions}!call\_pseudo\_args@{call\_pseudo\_args}} \index{call\_pseudo\_args@{call\_pseudo\_args}!Object Functions@{Object Functions}} \doxysubsubsection{\texorpdfstring{call\_pseudo\_args()}{call\_pseudo\_args()}} {\footnotesize\ttfamily auto Qore\+::call\+\_\+pseudo\+\_\+args (\begin{DoxyParamCaption}\item[{any}]{val, }\item[{\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}}}]{meth, }\item[{\+\_\+\+\_\+7\+\_\+ softlist$<$ auto $>$}]{argv }\end{DoxyParamCaption})} calls a pseudo-\/method on the given value with arguments given as a list \begin{DoxyParams}{Parameters} {\em val} & the value to call the pseudo-\/method on \\ \hline {\em meth} & the string method name of the pseudo-\/method to call \\ \hline {\em argv} & any other arguments to the method\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} the return value of the pseudo-\/method \end{DoxyReturn} \begin{DoxySeeAlso}{See also} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9}{Qore\+::zzz8valuezzz9}} for the class hierarchy of pseudo-\/classes \end{DoxySeeAlso} \begin{DoxyNote}{Note} this function can be used for security to ensure that a given pseudo-\/method of the \mbox{\hyperlink{class_qore_1_1zzz8objectzzz9}{Qore\+::zzz8objectzzz9}} class is called, as by default if a method of the same name is implemented by the object\textquotesingle{}s class, the class method will be called instead. \end{DoxyNote} \begin{DoxySince}{Since} Qore 0.\+8.\+8 \end{DoxySince} \mbox{\Hypertarget{group__object__functions_ga46a72b2a2a84282c5125b6fd7a2e6b23}\label{group__object__functions_ga46a72b2a2a84282c5125b6fd7a2e6b23}} \index{Object Functions@{Object Functions}!call\_static\_method@{call\_static\_method}} \index{call\_static\_method@{call\_static\_method}!Object Functions@{Object Functions}} \doxysubsubsection{\texorpdfstring{call\_static\_method()}{call\_static\_method()}} {\footnotesize\ttfamily auto Qore\+::call\+\_\+static\+\_\+method (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}}}]{class\+\_\+name, }\item[{\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}}}]{method, }\item[{}]{... }\end{DoxyParamCaption})} Calls a static method of an object, passing the arguments to the function as arguments to the method. \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{auto result = \mbox{\hyperlink{group__object__functions_ga46a72b2a2a84282c5125b6fd7a2e6b23}{call\_static\_method}}(\textcolor{stringliteral}{"{}Namespace::Class::method"{}}, arg1, arg2);} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em class\+\_\+name} & the with an optional namespace prefix \\ \hline {\em method} & the static method to call \\ \hline {\em ...} & any additional arguments to the method\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} the value returned by the method call \end{DoxyReturn} \begin{DoxyExceptions}{Exceptions} {\em METHOD-\/\+DOES-\/\+NOT-\/\+EXIST} & The named method does not exist in this class \\ \hline {\em ILLEGAL-\/\+EXPLICIT-\/\+METHOD-\/\+CALL} & The named method may not be called explicitly \\ \hline {\em METHOD-\/\+IS-\/\+PRIVATE} & The named method is private and therefore can only be called within the class \\ \hline {\em BASE-\/\+CLASS-\/\+IS-\/\+PRIVATE} & The named method is a member of a privately inherited base class\\ \hline \end{DoxyExceptions} \begin{DoxyNote}{Note} the method called could cause additional exceptions to be thrown \end{DoxyNote} \begin{DoxySeeAlso}{See also} \begin{DoxyItemize} \item \mbox{\hyperlink{group__object__functions_gaf3059a3551575f93e04f2f58ae0ab4c4}{call\+\_\+static\+\_\+method\+\_\+args()}} \item \mbox{\hyperlink{group__object__functions_ga733217c233efed0557e133a6cc45189f}{call\+\_\+object\+\_\+method()}} \item \mbox{\hyperlink{group__object__functions_ga3f3c875b6632a9b028a5d63be30bec14}{call\+\_\+object\+\_\+method\+\_\+args()}} \item \mbox{\hyperlink{class_qore_1_1_program_a7f13a387f3c4eeae169d88e0cc932caf}{Program\+::call\+Static\+Method()}} \item \mbox{\hyperlink{class_qore_1_1_program_a18173d853d29fcd28cd2851cc33ce15e}{Program\+::call\+Static\+Method\+Args()}} \end{DoxyItemize} \end{DoxySeeAlso} \mbox{\Hypertarget{group__object__functions_gaf3059a3551575f93e04f2f58ae0ab4c4}\label{group__object__functions_gaf3059a3551575f93e04f2f58ae0ab4c4}} \index{Object Functions@{Object Functions}!call\_static\_method\_args@{call\_static\_method\_args}} \index{call\_static\_method\_args@{call\_static\_method\_args}!Object Functions@{Object Functions}} \doxysubsubsection{\texorpdfstring{call\_static\_method\_args()}{call\_static\_method\_args()}} {\footnotesize\ttfamily auto Qore\+::call\+\_\+static\+\_\+method\+\_\+args (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}}}]{class\+\_\+name, }\item[{\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}}}]{method, }\item[{\+\_\+\+\_\+7\+\_\+ softlist$<$ auto $>$}]{call\+\_\+args }\end{DoxyParamCaption})} Calls a static method of an object, passing the arguments to the function as arguments to the method. \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{auto result = \mbox{\hyperlink{group__object__functions_gaf3059a3551575f93e04f2f58ae0ab4c4}{call\_static\_method\_args}}(\textcolor{stringliteral}{"{}Namespace::Class::method"{}}, (arg1, arg2));} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em class\+\_\+name} & the with an optional namespace prefix \\ \hline {\em method} & the static method to call \\ \hline {\em call\+\_\+args} & any additional arguments to the method\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} the value returned by the method call \end{DoxyReturn} \begin{DoxyExceptions}{Exceptions} {\em METHOD-\/\+DOES-\/\+NOT-\/\+EXIST} & The named method does not exist in this class \\ \hline {\em ILLEGAL-\/\+EXPLICIT-\/\+METHOD-\/\+CALL} & The named method may not be called explicitly \\ \hline {\em METHOD-\/\+IS-\/\+PRIVATE} & The named method is private and therefore can only be called within the class \\ \hline {\em BASE-\/\+CLASS-\/\+IS-\/\+PRIVATE} & The named method is a member of a privately inherited base class\\ \hline \end{DoxyExceptions} \begin{DoxyNote}{Note} the method called could cause additional exceptions to be thrown \end{DoxyNote} \begin{DoxySeeAlso}{See also} \begin{DoxyItemize} \item \mbox{\hyperlink{group__object__functions_ga46a72b2a2a84282c5125b6fd7a2e6b23}{call\+\_\+static\+\_\+method()}} \item \mbox{\hyperlink{group__object__functions_ga733217c233efed0557e133a6cc45189f}{call\+\_\+object\+\_\+method()}} \item \mbox{\hyperlink{group__object__functions_ga3f3c875b6632a9b028a5d63be30bec14}{call\+\_\+object\+\_\+method\+\_\+args()}} \item \mbox{\hyperlink{class_qore_1_1_program_a7f13a387f3c4eeae169d88e0cc932caf}{Program\+::call\+Static\+Method()}} \item \mbox{\hyperlink{class_qore_1_1_program_a18173d853d29fcd28cd2851cc33ce15e}{Program\+::call\+Static\+Method\+Args()}} \end{DoxyItemize} \end{DoxySeeAlso} \mbox{\Hypertarget{group__object__functions_ga861f336da074c21b56e747f402fa42e8}\label{group__object__functions_ga861f336da074c21b56e747f402fa42e8}} \index{Object Functions@{Object Functions}!callObjectMethod@{callObjectMethod}} \index{callObjectMethod@{callObjectMethod}!Object Functions@{Object Functions}} \doxysubsubsection{\texorpdfstring{callObjectMethod()}{callObjectMethod()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}} {\footnotesize\ttfamily nothing Qore\+::call\+Object\+Method (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})} This function variant does nothing at all; it is only included for backwards-\/compatibility with qore prior to version 0.\+8.\+0 for functions that would ignore type errors in arguments. \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_RUNTIME_NOOP}{RUNTIME\+\_\+\+NOOP}}, \mbox{\hyperlink{code_flags_DEPRECATED}{DEPRECATED}} \end{DoxyParagraph} \mbox{\Hypertarget{group__object__functions_ga22ceceed9c9da64694045ef7a32409c4}\label{group__object__functions_ga22ceceed9c9da64694045ef7a32409c4}} \index{Object Functions@{Object Functions}!callObjectMethod@{callObjectMethod}} \index{callObjectMethod@{callObjectMethod}!Object Functions@{Object Functions}} \doxysubsubsection{\texorpdfstring{callObjectMethod()}{callObjectMethod()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}} {\footnotesize\ttfamily auto Qore\+::call\+Object\+Method (\begin{DoxyParamCaption}\item[{object}]{obj, }\item[{\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}}}]{method, }\item[{}]{... }\end{DoxyParamCaption})} Calls a method of an object, passing the remainder of the arguments to the function as arguments to the method. \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_DEPRECATED}{DEPRECATED}} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em obj} & the object to use for the call \\ \hline {\em method} & the method to call \\ \hline {\em ...} & any additional arguments to the method\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} the value returned by the method call \end{DoxyReturn} \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{auto result = \mbox{\hyperlink{group__object__functions_ga22ceceed9c9da64694045ef7a32409c4}{callObjectMethod}}(obj, \textcolor{stringliteral}{"{}method"{}}, arg1, arg2);} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyExceptions}{Exceptions} {\em METHOD-\/\+DOES-\/\+NOT-\/\+EXIST} & The named method does not exist in this class \\ \hline {\em ILLEGAL-\/\+EXPLICIT-\/\+METHOD-\/\+CALL} & The named method may not be called explicitly \\ \hline {\em METHOD-\/\+IS-\/\+PRIVATE} & The named method is private and therefore can only be called within the class \\ \hline {\em BASE-\/\+CLASS-\/\+IS-\/\+PRIVATE} & The named method is a member of a privately inherited base class\\ \hline \end{DoxyExceptions} \begin{DoxyNote}{Note} the method called could cause additional exceptions to be thrown \end{DoxyNote} \begin{DoxyRefDesc}{Deprecated} \item[\mbox{\hyperlink{deprecated__deprecated000033}{Deprecated}}]use \mbox{\hyperlink{group__object__functions_ga733217c233efed0557e133a6cc45189f}{call\+\_\+object\+\_\+method()}}; camel-\/case function names were deprecated in Qore 0.\+8.\+12 \end{DoxyRefDesc} \mbox{\Hypertarget{group__object__functions_ga79bd6285b75f19740d2584018d4aee3f}\label{group__object__functions_ga79bd6285b75f19740d2584018d4aee3f}} \index{Object Functions@{Object Functions}!callObjectMethodArgs@{callObjectMethodArgs}} \index{callObjectMethodArgs@{callObjectMethodArgs}!Object Functions@{Object Functions}} \doxysubsubsection{\texorpdfstring{callObjectMethodArgs()}{callObjectMethodArgs()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}} {\footnotesize\ttfamily nothing Qore\+::call\+Object\+Method\+Args (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})} This function variant does nothing at all; it is only included for backwards-\/compatibility with qore prior to version 0.\+8.\+0 for functions that would ignore type errors in arguments. \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_RUNTIME_NOOP}{RUNTIME\+\_\+\+NOOP}}, \mbox{\hyperlink{code_flags_DEPRECATED}{DEPRECATED}} \end{DoxyParagraph} \mbox{\Hypertarget{group__object__functions_ga1aa450b9391a7e36b01caf570d458ab5}\label{group__object__functions_ga1aa450b9391a7e36b01caf570d458ab5}} \index{Object Functions@{Object Functions}!callObjectMethodArgs@{callObjectMethodArgs}} \index{callObjectMethodArgs@{callObjectMethodArgs}!Object Functions@{Object Functions}} \doxysubsubsection{\texorpdfstring{callObjectMethodArgs()}{callObjectMethodArgs()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}} {\footnotesize\ttfamily auto Qore\+::call\+Object\+Method\+Args (\begin{DoxyParamCaption}\item[{object}]{obj, }\item[{\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}}}]{method, }\item[{\+\_\+\+\_\+7\+\_\+ softlist$<$ auto $>$}]{varg }\end{DoxyParamCaption})} Calls a method of an object, using the optional third argument as the argument list to the method. \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_DEPRECATED}{DEPRECATED}} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em obj} & the object to use for the call \\ \hline {\em method} & the method to call \\ \hline {\em varg} & any additional arguments to the method\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} the value returned by the method call \end{DoxyReturn} \begin{DoxyExceptions}{Exceptions} {\em METHOD-\/\+DOES-\/\+NOT-\/\+EXIST} & The named method does not exist in this class \\ \hline {\em ILLEGAL-\/\+EXPLICIT-\/\+METHOD-\/\+CALL} & The named method may not be called explicitly \\ \hline {\em METHOD-\/\+IS-\/\+PRIVATE} & The named method is private and therefore can only be called within the class \\ \hline {\em BASE-\/\+CLASS-\/\+IS-\/\+PRIVATE} & The named method is a member of a privately inherited base class\\ \hline \end{DoxyExceptions} \begin{DoxyNote}{Note} the method called could cause additional exceptions to be thrown \end{DoxyNote} \begin{DoxyRefDesc}{Deprecated} \item[\mbox{\hyperlink{deprecated__deprecated000034}{Deprecated}}]use \mbox{\hyperlink{group__object__functions_ga3f3c875b6632a9b028a5d63be30bec14}{call\+\_\+object\+\_\+method\+\_\+args()}}; camel-\/case function names were deprecated in Qore 0.\+8.\+12 \end{DoxyRefDesc} \mbox{\Hypertarget{group__object__functions_ga6a929dc065cfb0b20639ac815be9cad3}\label{group__object__functions_ga6a929dc065cfb0b20639ac815be9cad3}} \index{Object Functions@{Object Functions}!create\_object@{create\_object}} \index{create\_object@{create\_object}!Object Functions@{Object Functions}} \doxysubsubsection{\texorpdfstring{create\_object()}{create\_object()}} {\footnotesize\ttfamily object Qore\+::create\+\_\+object (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}}}]{class\+\_\+name, }\item[{}]{... }\end{DoxyParamCaption})} creates an object from the class name (which can include a namespace path) and optionally any arguments for the constructor \begin{DoxyParagraph}{Example} \begin{DoxyCode}{0} \DoxyCodeLine{object obj = \mbox{\hyperlink{group__object__functions_ga6a929dc065cfb0b20639ac815be9cad3}{create\_object}}(class\_name, arg1, arg2);} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em class\+\_\+name} & the name of the class to instantiate (can be prefixed with a namespace path) \\ \hline {\em ...} & any other arguments to the constructor\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} the object created \end{DoxyReturn} \begin{DoxyExceptions}{Exceptions} {\em CREATE-\/\+OBJECT-\/\+ERROR} & unknown class, class implements features restricted by current parse options / sandboxing restrictions \\ \hline {\em CONSTRUCTOR-\/\+IS-\/\+PRIVATE} & attempt to instantiate an object with a private constructor from outside the class\\ \hline \end{DoxyExceptions} \begin{DoxyNote}{Note} see the class documentation for the class to be instantiated for a list of additional exceptions that can be thrown \end{DoxyNote} \begin{DoxySeeAlso}{See also} \mbox{\hyperlink{group__object__functions_ga6eaee4a61dd7e3f58de1dab76154397f}{create\+\_\+object\+\_\+args()}} \end{DoxySeeAlso} \begin{DoxySince}{Since} Qore 0.\+8.\+12 \end{DoxySince} \mbox{\Hypertarget{group__object__functions_ga6eaee4a61dd7e3f58de1dab76154397f}\label{group__object__functions_ga6eaee4a61dd7e3f58de1dab76154397f}} \index{Object Functions@{Object Functions}!create\_object\_args@{create\_object\_args}} \index{create\_object\_args@{create\_object\_args}!Object Functions@{Object Functions}} \doxysubsubsection{\texorpdfstring{create\_object\_args()}{create\_object\_args()}} {\footnotesize\ttfamily object Qore\+::create\+\_\+object\+\_\+args (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}}}]{class\+\_\+name, }\item[{\+\_\+\+\_\+7\+\_\+ softlist$<$ auto $>$}]{argv }\end{DoxyParamCaption})} creates an object from the class name (which can include a namespace path) and optionally any arguments for the constructor \begin{DoxyParagraph}{Example} \begin{DoxyCode}{0} \DoxyCodeLine{object obj = \mbox{\hyperlink{group__object__functions_ga6eaee4a61dd7e3f58de1dab76154397f}{create\_object\_args}}(class\_name, arg\_list);} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em class\+\_\+name} & the name of the class to instantiate (can be prefixed with a namespace path) \\ \hline {\em argv} & any other arguments to the constructor\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} the object created \end{DoxyReturn} \begin{DoxyExceptions}{Exceptions} {\em CREATE-\/\+OBJECT-\/\+ERROR} & unknown class, class implements features restricted by current parse options / sandboxing restrictions \\ \hline {\em CONSTRUCTOR-\/\+IS-\/\+PRIVATE} & attempt to instantiate an object with a private constructor from outside the class\\ \hline \end{DoxyExceptions} \begin{DoxyNote}{Note} see the class documentation for the class to be instantiated for a list of additional exceptions that can be thrown \end{DoxyNote} \begin{DoxySeeAlso}{See also} \mbox{\hyperlink{group__object__functions_ga6a929dc065cfb0b20639ac815be9cad3}{create\+\_\+object()}} \end{DoxySeeAlso} \begin{DoxySince}{Since} Qore 0.\+8.\+12 \end{DoxySince} \mbox{\Hypertarget{group__object__functions_gaaf374f86d44e428d57a23caee48374af}\label{group__object__functions_gaaf374f86d44e428d57a23caee48374af}} \index{Object Functions@{Object Functions}!get\_method\_list@{get\_method\_list}} \index{get\_method\_list@{get\_method\_list}!Object Functions@{Object Functions}} \doxysubsubsection{\texorpdfstring{get\_method\_list()}{get\_method\_list()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga4b52a1cbee7a3aed46c32cb0a938629c}{list}}$<$\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}}$>$ Qore\+::get\+\_\+method\+\_\+list (\begin{DoxyParamCaption}\item[{object}]{obj }\end{DoxyParamCaption})} Returns a list of strings of the names of the methods of the class of the object passed as a parameter. \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_CONSTANT}{CONSTANT}} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em obj} & an object of the class to get the method list from\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} a list of strings of the names of the methods of the class of the object passed as a parameter; returns all methods in the class, both private and public but does not return inherited methods \end{DoxyReturn} \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{list l = \mbox{\hyperlink{group__object__functions_gaaf374f86d44e428d57a23caee48374af}{get\_method\_list}}(obj);} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxySince}{Since} Qore 0.\+8.\+12 as a replacement for deprecated camel-\/case \mbox{\hyperlink{group__object__functions_ga88b51a14acbe008f2e60fca211b98a50}{get\+Method\+List()}} \end{DoxySince} \mbox{\Hypertarget{group__object__functions_ga380a58621dd27a188a2c8325cce1f9ff}\label{group__object__functions_ga380a58621dd27a188a2c8325cce1f9ff}} \index{Object Functions@{Object Functions}!getMethodList@{getMethodList}} \index{getMethodList@{getMethodList}!Object Functions@{Object Functions}} \doxysubsubsection{\texorpdfstring{getMethodList()}{getMethodList()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}} {\footnotesize\ttfamily nothing Qore\+::get\+Method\+List (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})} This function variant does nothing at all; it is only included for backwards-\/compatibility with qore prior to version 0.\+8.\+0 for functions that would ignore type errors in arguments. \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_RUNTIME_NOOP}{RUNTIME\+\_\+\+NOOP}}, \mbox{\hyperlink{code_flags_DEPRECATED}{DEPRECATED}} \end{DoxyParagraph} \mbox{\Hypertarget{group__object__functions_ga88b51a14acbe008f2e60fca211b98a50}\label{group__object__functions_ga88b51a14acbe008f2e60fca211b98a50}} \index{Object Functions@{Object Functions}!getMethodList@{getMethodList}} \index{getMethodList@{getMethodList}!Object Functions@{Object Functions}} \doxysubsubsection{\texorpdfstring{getMethodList()}{getMethodList()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}} {\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga4b52a1cbee7a3aed46c32cb0a938629c}{list}} Qore\+::get\+Method\+List (\begin{DoxyParamCaption}\item[{object}]{obj }\end{DoxyParamCaption})} Returns a list of strings of the names of the methods of the class of the object passed as a parameter. \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_CONSTANT}{CONSTANT}}, \mbox{\hyperlink{code_flags_DEPRECATED}{DEPRECATED}} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em obj} & an object of the class to get the method list from\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} a list of strings of the names of the methods of the class of the object passed as a parameter; returns all methods in the class, both private and public but does not return inherited methods \end{DoxyReturn} \begin{DoxyRefDesc}{Deprecated} \item[\mbox{\hyperlink{deprecated__deprecated000035}{Deprecated}}]use \mbox{\hyperlink{group__object__functions_gaaf374f86d44e428d57a23caee48374af}{get\+\_\+method\+\_\+list()}}; camel-\/case function names were deprecated in Qore 0.\+8.\+12 \end{DoxyRefDesc}