2323
2424namespace metacallcli
2525{
26- /* -- Forward Declarations -- */
27-
28- class tokenizer ;
29-
30- class parser ;
31- class parser_parameter ;
32-
33- class application ;
34-
3526/* -- Class Definition -- */
3627
3728/* *
@@ -67,18 +58,6 @@ class application
6758 */
6859 void run (void );
6960
70- /* *
71- * @brief
72- * Create a new value from arguments with parser @p
73- *
74- * @param[in] p
75- * Parser which points to the current iterator of the string
76- *
77- * @return
78- * Return a new value instanced if argument was correct
79- */
80- void *argument_parse (parser_parameter &p);
81-
8261protected:
8362 /* -- Protected Methods -- */
8463
@@ -98,91 +77,19 @@ class application
9877 */
9978 bool load_path (const char *path, void **handle);
10079
101- /* *
102- * @brief
103- * Print a value @v in a readable form on error (throwable)
104- *
105- * @param[in] v
106- * Value to be printed
107- *
108- */
109- void print (void *v);
110-
111- /* *
112- * @brief
113- * Invoke a function and print the result on error
114- *
115- * @param[in] func
116- * Command name matching the function registered from the plugins
117- *
118- * @param[in] args
119- * Function arguments as values
120- *
121- * @param[in] size
122- * Size of arguments
123- *
124- */
125- void invoke (const char *func, void *args[], size_t size);
126-
12780 /* *
12881 * @brief
12982 * Execute a command with string parameters
13083 *
13184 * @param[inout] tokens
132- * Array of values containing all the tokens of the input command
85+ * Value of type array containing all the tokens of the input command
13386 *
13487 * @return
13588 * Return result of the command execution
13689 */
13790 void *execute (void *tokens);
13891
13992private:
140- /* -- Private Class Definition -- */
141-
142- class parameter_iterator
143- {
144- public:
145- /* -- Public Methods -- */
146-
147- /* *
148- * @brief
149- * Initialize parameter iterator
150- *
151- * @param[in] app
152- * Reference to the application
153- */
154- parameter_iterator (application &app);
155-
156- /* *
157- * @brief
158- * Parameter iterator class destructor
159- */
160- ~parameter_iterator ();
161-
162- /* *
163- * @brief
164- * Operator callback for iteration
165- *
166- * @param[in] parameter
167- * Current parameter being iterated
168- */
169- void operator ()(const char *parameter);
170-
171- /* *
172- * @brief
173- * Assignement operator for parameter iterator
174- *
175- * @return
176- * Returns a reference to itself
177- */
178- parameter_iterator &operator =(const parameter_iterator &) = delete ;
179-
180- private:
181- /* -- Private Member Data -- */
182-
183- application &app; /* *< Reference to the application */
184- };
185-
18693 /* -- Private Member Data -- */
18794
18895 void *plugin_cli_handle; /* *< Handle containing all loaded plugins for CLI */
0 commit comments