提交
This commit is contained in:
35
include/Options.h
Normal file
35
include/Options.h
Normal file
@@ -0,0 +1,35 @@
|
||||
//
|
||||
// Created by ling on 24-2-4.
|
||||
//
|
||||
|
||||
#ifndef OPTIONS_H
|
||||
#define OPTIONS_H
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#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
|
||||
Reference in New Issue
Block a user