VPTissue Reference Manual
ProjectChanged.h
Go to the documentation of this file.
1 #ifndef WS_EVENT_PROJECTCHANGED_H_INCLUDED
2 #define WS_EVENT_PROJECTCHANGED_H_INCLUDED
3 /*
4  * Copyright 2011-2016 Universiteit Antwerpen
5  *
6  * Licensed under the EUPL, Version 1.1 or as soon they will be approved by
7  * the European Commission - subsequent versions of the EUPL (the "Licence");
8  * You may not use this work except in compliance with the Licence.
9  * You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl5
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the Licence is distributed on an "AS IS" basis,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the Licence for the specific language governing
15  * permissions and limitations under the Licence.
16  */
22 namespace SimShell {
23 namespace Ws {
24 namespace Event {
25 
32 {
33 public:
34  enum Type {
35  LeafAdded,
36  LeafRemoved
37  };
38 
39  ProjectChanged(Type type, const std::string& name)
40  : m_type(type), m_name(name) {}
41 
43  Type GetType() const { return m_type;}
44 
46  const std::string& GetName() const { return m_name; }
47 
48 private:
49  Type m_type;
50  std::string m_name;
51 };
52 
53 } // namespace
54 } // namespace
55 } // namespace
56 
57 #endif // end_of_inclde_guard
Event used to inform some observer that a project has changed.
Type GetType() const
Get type.
const std::string & GetName() const
Get name of added/removed sim data file.
Namespace for generic graphical shell for simulators.
Definition: SimSession.h:32