[Clam-devel] [PATCH] (work-in-progress) ProcessingFactory managing Metadata
Pau Arumi
parumi at iua.upf.edu
Thu Jul 5 04:29:04 PDT 2007
En/na Andreas Calvo ha escrit:
> This patch the early steps to add and manage metadata to the Processing
> Factory.
> Now it does uses a string to store metadata, but it will change to a
> struct (for easy manage).
> With this patch it is possible to retrieve information of a given
> category and of a given key.
> New methods will be added:
> - to retrieve information for a key and attributes
> - to retrieve attributes (no values) from a key
> - to retrieve unique names of attributes
>
>
> any suggestion will be really appreciated
Although not finished I've committed it (revision 10349) with
implementation comments in ProcessingFactory.*xx
and new tests to be passed (now commented out).
An advice:try to do it test-driven which means: implement only the
simpler code that pass the current tests.
// CPPUNIT_TEST( testAddAttribute_nonExistingKey );
// CPPUNIT_TEST( testGetValueFor_nonExistingKey );
// CPPUNIT_TEST( testGetValueFor_nonExistingAttribute );
// CPPUNIT_TEST( testGetValueFor_existingAttribute );
More information about the clam-devel
mailing list