Qpid Management Framework  0.24
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ConsoleEvent.h
Go to the documentation of this file.
1 #ifndef QMF_CONSOLE_EVENT_H
2 #define QMF_CONSOLE_EVENT_H
3 /*
4  *
5  * Licensed to the Apache Software Foundation (ASF) under one
6  * or more contributor license agreements. See the NOTICE file
7  * distributed with this work for additional information
8  * regarding copyright ownership. The ASF licenses this file
9  * to you under the Apache License, Version 2.0 (the
10  * "License"); you may not use this file except in compliance
11  * with the License. You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing,
16  * software distributed under the License is distributed on an
17  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18  * KIND, either express or implied. See the License for the
19  * specific language governing permissions and limitations
20  * under the License.
21  *
22  */
23 
24 #include <qmf/ImportExport.h>
25 #include "qmf/Handle.h"
26 #include "qmf/Agent.h"
27 #include "qmf/Data.h"
28 #include "qmf/SchemaId.h"
29 #include "qpid/types/Variant.h"
30 
31 namespace qmf {
32 
33 #ifndef SWIG
34  template <class> class PrivateImplRef;
35 #endif
36 
37  class ConsoleEventImpl;
38 
53  };
54 
58  };
59 
60  class QMF_CLASS_EXTERN ConsoleEvent : public qmf::Handle<ConsoleEventImpl> {
61  public:
62  QMF_EXTERN ConsoleEvent(ConsoleEventImpl* impl = 0);
63  QMF_EXTERN ConsoleEvent(const ConsoleEvent&);
64  QMF_EXTERN ConsoleEvent& operator=(const ConsoleEvent&);
65  QMF_EXTERN ~ConsoleEvent();
66 
67  QMF_EXTERN ConsoleEventCode getType() const;
68  QMF_EXTERN uint32_t getCorrelator() const;
69  QMF_EXTERN Agent getAgent() const;
70  QMF_EXTERN AgentDelReason getAgentDelReason() const;
71  QMF_EXTERN uint32_t getSchemaIdCount() const;
72  QMF_EXTERN SchemaId getSchemaId(uint32_t) const;
73  QMF_EXTERN uint32_t getDataCount() const;
74  QMF_EXTERN Data getData(uint32_t) const;
75  QMF_EXTERN bool isFinal() const;
76  QMF_EXTERN const qpid::types::Variant::Map& getArguments() const;
77  QMF_EXTERN int getSeverity() const;
78  QMF_EXTERN uint64_t getTimestamp() const;
79 
80 #ifndef SWIG
81  private:
82  friend class qmf::PrivateImplRef<ConsoleEvent>;
83  friend struct ConsoleEventImplAccess;
84 #endif
85  };
86 
87 }
88 
89 #endif