로딩중...
검색중...
일치하는것 없음
verStela.hpp
이 파일의 문서화 페이지로 가기
1
2#pragma once
3
5
6namespace by {
7
26 class _nout verStela: public valStela {
28
29 public:
30 verStela(nint major, nint minor, nint patch);
31 verStela(nint major, nint minor, nint patch, nint rev);
32 explicit verStela(const std::string& verStr);
33 explicit verStela(const nchar* verStr);
34
35 public:
36 nbool operator>(const me& rhs) const;
37 nbool operator<(const me& rhs) const;
38 nbool operator==(const me& rhs) const;
39 nbool operator!=(const me& rhs) const;
40 nbool operator<=(const me& rhs) const;
41 nbool operator>=(const me& rhs) const;
42
43 public:
44 nint asMajor() const;
45 nint asMinor() const;
46 nint asPatch() const;
47 nint asRev() const;
48
49 private:
50 static nint _isFromBigger(nint from, nint to);
51 static std::string _makeValid(const std::string& verStr);
52 nint _splitVers(nint n) const;
53
54 private:
55 static constexpr nint MIN_VER_LEN = 3;
56 static constexpr nint MAX_VER_LEN = 4;
57 static constexpr const nchar* DELIMITER = ".";
58 };
59} // namespace by
Weak reference smart pointer with type-safe access
Definition tweak.hpp:16
Scalar value — the abstract base of every leaf form.
Definition valStela.hpp:21
Version stela node for semantic version handling
Definition verStela.hpp:26
to Top