smartDedent.hpp
Go to the documentation of this file.
1
2#pragma once
3
4#include "core/type/ntype.hpp"
5
6namespace by {
10 class _nout smartDedent: public typeProvidable, public clonable {
11 BY(CLASS(smartDedent))
12
13 enum Status {
14 OFF = -1,
15 CAUGHT = 0,
16 ON = 1,
17 };
18
19 public:
21
22 public:
23 me& countDown();
24 me& countUp();
25 me& useLater();
26 nint dedent();
27 void rel();
28 nbool canDedent() const;
29 nbool isOn() const;
30
31 private:
32 nint _cnt;
33 nbool _isEnable;
34 };
35}
Interface for objects that can be cloned.
Definition: clonable.hpp:12
Smart indentation management for code parsing.
Definition: smartDedent.hpp:10
Interface for objects that can provide their type information.
Definition: typeProvidable.hpp:12