Added PlantUML links generation in class diagrams

This commit is contained in:
Bartek Kryza
2022-03-20 22:57:17 +01:00
parent 3c30350edc
commit d7e27841bc
15 changed files with 351 additions and 14 deletions

View File

@@ -0,0 +1,46 @@
/**
* src/common/model/source_location.h
*
* Copyright (c) 2021-2022 Bartek Kryza <bkryza@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
#include <string>
namespace clanguml::common::model {
class source_location {
public:
source_location() = default;
source_location(const std::string &f, unsigned int l)
: file_{f}
, line_{l}
{
}
const std::string &file() const { return file_; }
void set_file(const std::string &file) { file_ = file; }
unsigned int line() const { return line_; }
void set_line(const unsigned line) { line_ = line; }
private:
std::string file_;
unsigned int line_{0};
};
}