Replace SENFSCons.InstallIncludeFiles with InstallSubdir builder calls
[senf.git] / Packets / Packet.cci
index 5fb6b13..6e9d735 100644 (file)
@@ -171,12 +171,31 @@ prefix_ senf::Packet::factory_t senf::Packet::factory()
     return ptr()->factory();
 }
 
+prefix_ unsigned long senf::Packet::id()
+    const
+{
+    return reinterpret_cast<unsigned long>(&ptr()->impl());
+}
+
 prefix_ bool senf::Packet::boolean_test()
     const
 {
     return packet_ && packet_->valid();
 }
 
+prefix_ bool senf::Packet::valid()
+    const
+{
+    return *this;
+}
+
+template <class PacketType, class Parser>
+prefix_ Parser senf::operator<<(Parser target, ConcretePacket<PacketType> const & packet)
+{
+    target << packet.parser();
+    return target;
+}
+
 ///////////////////////////////cci.e///////////////////////////////////////
 #undef prefix_