1 | // |
2 | // Decl.cpp |
3 | // |
4 | // Library: CppParser |
5 | // Package: SymbolTable |
6 | // Module: Decl |
7 | // |
8 | // Copyright (c) 2006, Applied Informatics Software Engineering GmbH. |
9 | // and Contributors. |
10 | // |
11 | // SPDX-License-Identifier: BSL-1.0 |
12 | // |
13 | |
14 | |
15 | #include "Poco/CppParser/Decl.h" |
16 | #include "Poco/String.h" |
17 | |
18 | |
19 | namespace Poco { |
20 | namespace CppParser { |
21 | |
22 | |
23 | Decl::Decl(const std::string& decl, NameSpace* pNameSpace): |
24 | Symbol(extractName(decl), pNameSpace), |
25 | _decl(Poco::trim(decl)) |
26 | { |
27 | } |
28 | |
29 | |
30 | Decl::~Decl() |
31 | { |
32 | } |
33 | |
34 | |
35 | std::string Decl::toString() const |
36 | { |
37 | return _decl; |
38 | } |
39 | |
40 | |
41 | } } // namespace Poco::CppParser |
42 | |
43 | |