PropertyScanner.hpp
Go to the documentation of this file.
1 // @formatter:off
2 //
3 // Balau core C++ library
4 //
5 // Copyright (C) 2017 Bora Software (contact@borasoftware.com)
6 //
7 // Licensed under the Boost Software License - Version 1.0 - August 17th, 2003.
8 // See the LICENSE file for the full license text.
9 //
10 
16 
17 #ifndef COM_BORA_SOFTWARE__BALAU_LANG_PROPERTY_PARSER__PROPERTY_SCANNER
18 #define COM_BORA_SOFTWARE__BALAU_LANG_PROPERTY_PARSER__PROPERTY_SCANNER
19 
22 
23 #include <stack>
24 
25 namespace Balau::Lang::Property {
26 
30 class PropertyScanner : public AbstractScanner<PropertyToken> {
34  public: explicit PropertyScanner(std::shared_ptr<Resource::Uri> uri)
35  : AbstractScanner<PropertyToken>(std::move(uri)) {}
36 
40  public: explicit PropertyScanner(std::unique_ptr<Resource::Uri> && uri)
41  : AbstractScanner<PropertyToken>(std::move(uri)) {}
42 
44 
45  private: PropertyToken getNextToken() override;
46 };
47 
48 } // namespace Balau::Lang::Property
49 
50 #endif // COM_BORA_SOFTWARE__BALAU_LANG_PROPERTY_PARSER__PROPERTY_SCANNER
Base class for scanners.
Definition: AbstractScanner.hpp:50
STL namespace.
Base class for scanners.
PropertyToken
Property language tokens.
Definition: PropertyToken.hpp:29
PropertyScanner(std::unique_ptr< Resource::Uri > &&uri)
Instantiate a scanner with text obtained from the URI.
Definition: PropertyScanner.hpp:40
A scanner for the property parser.
Definition: PropertyScanner.hpp:30
PropertyScanner(std::shared_ptr< Resource::Uri > uri)
Instantiate a scanner with text obtained from the URI.
Definition: PropertyScanner.hpp:34
The Property parser Token enum.
The Property parser.