m2etis  0.4
NullValidity.h
Go to the documentation of this file.
1 /*
2  Copyright (2016) Michael Baer, Daniel Bonrath, All rights reserved.
3 
4  Licensed under the Apache License, Version 2.0 (the "License");
5  you may not use this file except in compliance with the License.
6  You may obtain a copy of the License at
7 
8  http://www.apache.org/licenses/LICENSE-2.0
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15  */
16 
22 #ifndef __M2ETIS_PUBSUB_VALIDITY_NULLVALIDITY_H__
23 #define __M2ETIS_PUBSUB_VALIDITY_NULLVALIDITY_H__
24 
27 
28 namespace m2etis {
29 namespace pubsub {
30 namespace validity {
31 
32  class NullValidity : public BaseValidity {
33  public:
35 
37  virtual ~NullValidity() {}
38 
40 
42 
44 
46  return true;
47  }
48  };
49 
50 } /* namespace validity */
51 } /* namespace pubsub */
52 } /* namespace m2etis */
53 
54 #endif /* __M2ETIS_PUBSUB_VALIDITY_NULLVALIDITY_H__ */
55 
void processNotifyPayload(message::ValidityInfo::Ptr vInfo)
processes received Notify message
Definition: NullValidity.h:43
void configureValidityInfo(message::ValidityInfo::Ptr vInfo)
configures ValidityInfo before sending
Definition: NullValidity.h:39
message::NullValidityInfo ValidityInfoType
Definition: NullValidity.h:34
bool isValid(message::ValidityInfo::Ptr vInfo)
checks whether a message is valid or has to be stopped
Definition: NullValidity.h:45
NullValidity(PubSubSystemEnvironment *pssi)
Definition: NullValidity.h:36
boost::shared_ptr< ValidityInfo > Ptr
Definition: ValidityInfo.h:31
void processPublishPayload(message::ValidityInfo::Ptr vInfo)
processes received Publish message
Definition: NullValidity.h:41