XJ music engine  1.9.6
In-game runtime engine for XJ music.
ParseNumeric.h
Go to the documentation of this file.
1 // Copyright (c) XJ Music Inc. (https://xjmusic.com) All Rights Reserved.
2 
3 #ifndef XJMUSIC_ENTITIES_MEME_PARSE_NUMERIC_H
4 #define XJMUSIC_ENTITIES_MEME_PARSE_NUMERIC_H
5 
6 #include <regex>
7 #include <vector>
8 #include <string>
9 
10 namespace XJ {
11 
19  class ParseNumeric {
20  public:
21  static const std::regex rgx;
22  std::string body;
23  int prefix;
24  bool valid;
25  explicit ParseNumeric(const std::string &raw);
26  static ParseNumeric fromString(const std::string &raw);
27  [[nodiscard]] bool isViolatedBy(const ParseNumeric &target) const;
28  bool isAllowed(const std::vector<ParseNumeric> &memes) const;
29  };
30 
31 
32 }
33 
34 #endif//XJMUSIC_ENTITIES_MEME_PARSE_NUMERIC_H
Definition: ParseNumeric.h:19
bool valid
Definition: ParseNumeric.h:24
bool isViolatedBy(const ParseNumeric &target) const
Definition: ParseNumeric.cpp:40
static const std::regex rgx
Definition: ParseNumeric.h:21
static ParseNumeric fromString(const std::string &raw)
Definition: ParseNumeric.cpp:36
bool isAllowed(const std::vector< ParseNumeric > &memes) const
Definition: ParseNumeric.cpp:44
std::string body
Definition: ParseNumeric.h:22
int prefix
Definition: ParseNumeric.h:23
ParseNumeric(const std::string &raw)
Definition: ParseNumeric.cpp:7
Definition: ActiveAudio.h:11