Files
clang-uml/src/sequence_diagram/model/diagram.h
2022-02-17 20:58:38 +01:00

45 lines
1.2 KiB
C++

/**
* src/sequence_diagram/model/diagram.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 "activity.h"
#include "common/model/diagram.h"
#include <map>
#include <string>
namespace clanguml::sequence_diagram::model {
class diagram : public clanguml::common::model::diagram {
public:
diagram() = default;
diagram(const diagram &) = delete;
diagram(diagram &&) = default;
diagram &operator=(const diagram &) = delete;
diagram &operator=(diagram &&) = default;
std::string to_alias(const std::string &full_name) const;
bool started{false};
std::map<std::uint_least64_t, activity> sequences;
};
}