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
19namespace Poco {
20namespace CppParser {
21
22
23Decl::Decl(const std::string& decl, NameSpace* pNameSpace):
24 Symbol(extractName(decl), pNameSpace),
25 _decl(Poco::trim(decl))
26{
27}
28
29
30Decl::~Decl()
31{
32}
33
34
35std::string Decl::toString() const
36{
37 return _decl;
38}
39
40
41} } // namespace Poco::CppParser
42
43