Files
parameter/include/Options.h

38 lines
735 B
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// 版权所有 (c) ling 保留所有权利。
// 除非另行说明否则仅允许在parameter中使用此文件中的代码。
//
// 由 ling 创建于 24-2-4.
//
#ifndef OPTIONS_H
#define OPTIONS_H
#include <string>
#include <vector>
#include <cstdint>
#include <Order.h>
namespace ling {
class Order;
class Options {
private:
Order *ptr = nullptr;
int id;
public:
Options(int id, Order *ptr);
[[nodiscard]] int64_t getInt64() const;
[[nodiscard]] double getDouble() const;
[[nodiscard]] const std::string &getString() const;
[[nodiscard]] bool isOption() const;
[[nodiscard]] bool isExistence() const;
};
} // ling
#endif //OPTIONS_H