Rishka
RISC-V virtual runtime in C/C++ made for ESP32-WROVER
args.h
Go to the documentation of this file.
1/*
2 * This file is part of the Rishka distribution (https://github.com/nthnn/rishka).
3 * Copyright (c) 2024 Nathanne Isip.
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, version 3.
8 *
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
27#ifndef LIBRISHKA_ARGS_H
28#define LIBRISHKA_ARGS_H
29
30#include <librishka/types.h>
31
40class Args final {
41public:
50 static u8 count();
51
61 static string value(u8 index);
62};
63
64#endif /* LIBRISHKA_ARGS_H */
Class for handling command line arguments in Rishka applications.
Definition: args.h:40
static u8 count()
Get the number of command line arguments.
Definition: librishka_args.cpp:21
static string value(u8 index)
Get the value of a command line argument at a specific index.
Definition: librishka_args.cpp:25
Header file for common data types used in Rishka applications.
unsigned char u8
Alias for the unsigned 8-bit integer type.
Definition: types.h:70