Etterna 0.74.4
Loading...
Searching...
No Matches
StyleUtil.h
1#ifndef STYLEUTIL_H
2#define STYLEUTIL_H
3
4class Style;
5class Song;
6class XNode;
7
8class StyleID
9{
10 std::string sGame;
11 std::string sStyle;
12
13 public:
14 StyleID()
15 : sGame("")
16 , sStyle("")
17 {
18 }
19 void Unset() { FromStyle(nullptr); }
20 void FromStyle(const Style* p);
21 [[nodiscard]] auto ToStyle() const -> const Style*;
22 auto operator<(const StyleID& rhs) const -> bool;
23
24 [[nodiscard]] auto CreateNode() const -> XNode*;
25 void LoadFromNode(const XNode* pNode);
26 [[nodiscard]] auto IsValid() const -> bool;
27 static void FlushCache(Song* pStaleSong);
28};
29
30#endif
Holds all music metadata and steps for one song.
Definition Song.h:65
Definition StyleUtil.h:9
Definition Style.h:22
Definition XmlFile.h:95