OpFlex Framework  1.7.0
ObjectListener.h
Go to the documentation of this file.
1 /* -*- C++ -*-; c-basic-offset: 4; indent-tabs-mode: nil */
6 /*
7  * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
8  *
9  * This program and the accompanying materials are made available under the
10  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
11  * and is available at http://www.eclipse.org/legal/epl-v10.html
12  */
13 
14 #ifndef MODB_OBJECTLISTENER_H
15 #define MODB_OBJECTLISTENER_H
16 
17 #include <set>
18 #include "ClassInfo.h"
19 #include "URI.h"
20 
21 namespace opflex {
22 namespace modb {
23 
24 class ObjectStore;
25 
42 public:
46  virtual ~ObjectListener() {}
47 
64  virtual void objectUpdated(class_id_t class_id, const URI& uri) = 0;
65 };
66 
67 /* @} modb */
68 /* @} cpp */
69 
70 } /* namespace modb */
71 } /* namespace opflex */
72 
73 #endif /* MODB_OBJECTLISTENER_H */
virtual void objectUpdated(class_id_t class_id, const URI &uri)=0
The specified URI has been added, updated, or deleted.
virtual ~ObjectListener()
Destroy the object listener.
Definition: ObjectListener.h:46
Interface for an object interested in updates to objects in the data store.
Definition: ObjectListener.h:41
uint64_t class_id_t
A unique class ID.
Definition: PropertyInfo.h:34
Definition: OFLogHandler.h:20
A URI is used to identify managed objects in the MODB.
Definition: URI.h:43
Interface definition file for ClassInfo.
Interface definition file for URIs.