GTIRB  v2.1.0
GrammaTech Intermediate Representation for Binaries: C++ API
Observer.hpp
Go to the documentation of this file.
1 //===- Observer.hpp ---------------------------------------------*- C++ -*-===//
2 //
3 // Copyright (C) 2020 GrammaTech, Inc.
4 //
5 // This code is licensed under the MIT license. See the LICENSE file in the
6 // project root for license terms.
7 //
8 // This project is sponsored by the Office of Naval Research, One Liberty
9 // Center, 875 N. Randolph Street, Arlington, VA 22203 under contract #
10 // N68335-17-C-0700. The content of the information does not necessarily
11 // reflect the position or policy of the Government and no official
12 // endorsement should be inferred.
13 //
14 //===----------------------------------------------------------------------===//
15 #ifndef GTIRB_OBSERVER_H
16 #define GTIRB_OBSERVER_H
17 
18 namespace gtirb {
19 enum class ChangeStatus {
20  Rejected, //< The requested change cannot be completed and must be rolled
21  //< back.
22  Accepted, //< The requested change was implemented successfully.
23  NoChange //< The requested change would not alter the data structure.
24 };
25 }
26 
27 #endif // GTIRB_OBSERVER_H
gtirb::ChangeStatus::Rejected
@ Rejected
gtirb
Main namespace for the GTIRB API.
Definition: Addr.hpp:28
gtirb::ChangeStatus::Accepted
@ Accepted
gtirb::ChangeStatus::NoChange
@ NoChange
gtirb::ChangeStatus
ChangeStatus
Definition: Observer.hpp:19