XJ music engine  1.9.6
In-game runtime engine for XJ music.
Root.h
Go to the documentation of this file.
1 // Copyright (c) XJ Music Inc. (https://xjmusic.com) All Rights Reserved.
2 
3 #ifndef XJMUSIC_MUSIC_ROOT_H
4 #define XJMUSIC_MUSIC_ROOT_H
5 
6 #include <regex>
7 
8 #include "PitchClass.h"
9 
10 namespace XJ {
11 
15  class Root {
16  private:
17  static std::regex rgxNote;
18  static std::regex rgxNoteModified;
19 
20  public:
22  std::string remainingText;
23 
29  explicit Root(const std::string &name);
30 
39  static Root of(const std::string &name);
40 
46  void evaluate(const std::regex& pattern, const std::string& text);
47 
48  };
49 
50 }// namespace XJ
51 
52 #endif// XJMUSIC_MUSIC_ROOT_H
Definition: Root.h:15
std::string remainingText
Definition: Root.h:22
Root(const std::string &name)
Definition: Root.cpp:12
PitchClass pitchClass
Definition: Root.h:21
void evaluate(const std::regex &pattern, const std::string &text)
Definition: Root.cpp:29
static Root of(const std::string &name)
Definition: Root.cpp:24
Definition: ActiveAudio.h:11
PitchClass
Definition: PitchClass.h:19