[Clam-devel] Typed Controls Tests

Francisco Tufró nictuku at gmail.com
Tue Apr 29 15:32:00 PDT 2008


As explained on the Data Flow Patterns pdf sent to me by pau (and taking
some examples from the InPort.hxx and OutPort.hxx), i've been trying to
create the template classes TInControl<T> and TOutControl<T>.
NOTICE: I have to say that the code i'm sending is not functional.
I have some problems that i'll describe here.

1) We have to do something with the remove link and related functions to
work. mLinks is not accessible from the TOutControl class (because is a
OutControl private member). right now i commented the mLinks occurencies
just to test it.

2) When trying to compile my test processing (TypedOutControl.hxx and cxx)
I get this error:
  TOutControl.hxx:84: error: cannot dynamic_cast 'in' (of type 'class
CLAM::InControl') to type 'struct CLAM::TInControl<int>' (target is not
pointer or reference)
I don't get the key of why this is happening.

If you think i'm going in a wrong direction on something please tell me.
Thanks!!
Francisco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20080429/0480e905/attachment-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TInControl.hxx
Type: application/octet-stream
Size: 4757 bytes
Desc: not available
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20080429/0480e905/attachment-0018.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TOutControl.hxx
Type: application/octet-stream
Size: 2711 bytes
Desc: not available
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20080429/0480e905/attachment-0019.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TypedControl.diff
Type: application/octet-stream
Size: 1914 bytes
Desc: not available
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20080429/0480e905/attachment-0020.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TypedOutControl.cxx
Type: application/octet-stream
Size: 295 bytes
Desc: not available
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20080429/0480e905/attachment-0021.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TypedOutControl.hxx
Type: application/octet-stream
Size: 553 bytes
Desc: not available
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20080429/0480e905/attachment-0022.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SConstruct
Type: application/octet-stream
Size: 1514 bytes
Desc: not available
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20080429/0480e905/attachment-0023.obj>


More information about the clam-devel mailing list