diff options
author | Alan Conway <aconway@apache.org> | 2006-09-28 14:20:54 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2006-09-28 14:20:54 +0000 |
commit | 48ceacbfc49c179f63931c5c10d0342f62a01413 (patch) | |
tree | f8985e5d476a3c8e232e047f0fe5bd40c73b302d /cpp/common | |
parent | caca23c5dc055d985fecfe188573104bc707ad9d (diff) | |
download | qpid-python-48ceacbfc49c179f63931c5c10d0342f62a01413.tar.gz |
New files missed from yesterdays checkin, apologies!
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@450861 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/common')
-rw-r--r-- | cpp/common/framing/src/AMQBody.cpp | 33 | ||||
-rw-r--r-- | cpp/common/framing/src/AMQHeartbeatBody.cpp | 26 |
2 files changed, 59 insertions, 0 deletions
diff --git a/cpp/common/framing/src/AMQBody.cpp b/cpp/common/framing/src/AMQBody.cpp new file mode 100644 index 0000000000..08f0b1d7ca --- /dev/null +++ b/cpp/common/framing/src/AMQBody.cpp @@ -0,0 +1,33 @@ +/* + * + * Copyright (c) 2006 The Apache Software Foundation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include "AMQBody.h" +#include <iostream> + +std::ostream& qpid::framing::operator<<(std::ostream& out, const qpid::framing::AMQBody& body) +{ + body.print(out); + return out; +} + + +qpid::framing::AMQBody::~AMQBody() {} + +void qpid::framing::AMQBody::print(std::ostream& out) const { + out << "unknown body"; +} diff --git a/cpp/common/framing/src/AMQHeartbeatBody.cpp b/cpp/common/framing/src/AMQHeartbeatBody.cpp new file mode 100644 index 0000000000..15cbfeda48 --- /dev/null +++ b/cpp/common/framing/src/AMQHeartbeatBody.cpp @@ -0,0 +1,26 @@ +/* + * + * Copyright (c) 2006 The Apache Software Foundation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include "AMQHeartbeatBody.h" +#include <iostream> + +qpid::framing::AMQHeartbeatBody::~AMQHeartbeatBody() {} + +void qpid::framing::AMQHeartbeatBody::print(std::ostream& out) const { + out << "heartbeat"; +} |