mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 05:28:20 +00:00
20 lines
469 B
C++
20 lines
469 B
C++
// See the file "COPYING" in the main distribution directory for copyright.
|
|
|
|
#ifndef pac_number_h
|
|
#define pac_number_h
|
|
|
|
#include "pac_common.h"
|
|
|
|
class Number : public Object {
|
|
public:
|
|
Number(int arg_n) : s(strfmt("%d", arg_n)), n(arg_n) {}
|
|
Number(const char* arg_s, int arg_n) : s(arg_s), n(arg_n) {}
|
|
const char* Str() const { return s.c_str(); }
|
|
int Num() const { return n; }
|
|
|
|
protected:
|
|
const string s;
|
|
const int n;
|
|
};
|
|
|
|
#endif // pac_number_h
|