DetectorGraph  2.0
resumefromsnapshottopicstate.hpp
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4 indent-tabs-mode: nil -*-
2  *
3  * Copyright (c) 2016 Nest Labs, Inc.
4  * All rights reserved.
5  *
6  * This document is the property of Nest. It is considered
7  * confidential and proprietary information.
8  *
9  * This document may not be reproduced or transmitted in any form,
10  * in whole or in part, without the express written permission of
11  * Nest.
12  *
13  * Description:
14  * TopicState that contains an entire StateSnapshot passed to
15  * all resuming detectors on startup.
16  * Note that this is a private TopicState (otherwise this
17  * object would grow indefinitely mirror vs. mirror style)
18  *
19  */
20 
21 #ifndef DETECTORGRAPH_INCLUDE_RESUMEFROMSNAPSHOTTOPICSTATE_HPP
22 #define DETECTORGRAPH_INCLUDE_RESUMEFROMSNAPSHOTTOPICSTATE_HPP
23 
24 #include <topicstate.hpp>
25 #include "statesnapshot.hpp"
26 
27 namespace DetectorGraph
28 {
29 
31 {
33 
34  ResumeFromSnapshotTopicState() : snapshot() {}
36  : snapshot(aSnapshot)
37  {
38  }
39 };
40 
41 }
42 
43 #endif // DETECTORGRAPH_INCLUDE_RESUMEFROMSNAPSHOTTOPICSTATE_HPP
The collection of TopicStates that represents the graph state so far.
Base struct for topic data types.
Definition: topicstate.hpp:52
ResumeFromSnapshotTopicState(const DetectorGraph::StateSnapshot &aSnapshot)