로딩중...
검색중...
일치하는것 없음
valStela.hpp
이 파일의 문서화 페이지로 가기
1
2#pragma once
3
4#include "stela/ast/stela.hpp"
5
6namespace by {
7
17 class _nout valStela: public stela {
18 BY(ME(valStela, stela), CLONE(me), INIT_META(valStela))
19
20 public:
21 valStela(const std::string& rawVal, const std::string& name = "");
22 valStela(nbool val, const std::string& name = "");
23 valStela(nint val, const std::string& name = "");
24 valStela(nflt val, const std::string& name = "");
25 valStela(const me& rhs, const std::string& name = "");
26
27 public:
28 const std::string& asStr() const override;
29 nchar asChar() const override;
30 nint asInt() const override;
31 nbool asBool() const override;
32 const type& getType() const override;
33
34 private:
35 static std::string toLower(std::string it);
36
37 private:
38 std::string _rawVal;
39 };
40}
Core AST node for stela configuration language
Definition stela.hpp:49
Core class for runtime type information in byeol language
Definition type.hpp:100
Value stela node for storing primitive values
Definition valStela.hpp:17
const std::string & asStr() const override
Converts the stela object's value to a string.
nchar asChar() const override
Converts the stela object's value to a character.
nint asInt() const override
Converts the stela object's value to an integer.
nbool asBool() const override
Converts the stela object's value to a boolean.
Rich logging support with polymorphic type conversion
Definition richLog.hpp:34