X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FPacket.cti;h=163b931789d5bbef747a88e93dca0a137a3013ae;hb=032707d24b1059febe83ce56b11fd79df106c6e2;hp=364bd1702471ee0ec8231b11cd6338c5b04cdb3e;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Packets/Packet.cti b/Packets/Packet.cti index 364bd17..163b931 100644 --- a/Packets/Packet.cti +++ b/Packets/Packet.cti @@ -30,14 +30,14 @@ ///////////////////////////////cti.p/////////////////////////////////////// template -prefix_ bool satcom::pkf::Packet::is() +prefix_ bool senf::Packet::is() const { return dynamic_cast(this); } template -prefix_ typename satcom::pkf::Packet::ptr_t::ptr satcom::pkf::Packet::as() +prefix_ typename senf::Packet::ptr_t::ptr senf::Packet::as() { return typename ptr_t::ptr(dynamic_cast(this),true); } @@ -45,19 +45,19 @@ prefix_ typename satcom::pkf::Packet::ptr_t::ptr satcom::pkf::Packe // This constructor appends a new interreter to the interpreter chain // of an existing Packet template -prefix_ satcom::pkf::Packet::Packet(Operation const & arg) +prefix_ senf::Packet::Packet(Operation const & arg) : impl_(0), begin_(arg.begin()), end_(arg.end()), self_(), parsed_(false), refcount_(1) { SATCOM_PKF_REFC_MSG("] Packet::Packet (" << this << "): refcount_ = 1\n"); - // FIXME: This is not exception safe, if an exception is thrown in - // the derived class constuctor, the effects of this call must be - // undone which is not possible in a simple way. + /** \fixme This is not exception safe, if an exception is thrown in + the derived class constuctor, the effects of this call must be + undone which is not possible in a simple way. */ arg(this); } template -prefix_ satcom::pkf::impl::PacketImpl::PacketImpl(InputIterator begin, InputIterator end) +prefix_ senf::impl::PacketImpl::PacketImpl(InputIterator begin, InputIterator end) : data_(begin, end), interpreters_(), refcount_(1) { SATCOM_PKF_REFC_MSG("] PacketImpl::PacketImpl (" << this << "): refcount_ = 1\n") @@ -69,5 +69,5 @@ prefix_ satcom::pkf::impl::PacketImpl::PacketImpl(InputIterator begin, InputIter // Local Variables: // mode: c++ -// c-file-style: "satcom" +// c-file-style: "senf" // End: