[clam-devel] ConfigurationProxy: següent passa

Xavier Serra Román xvr.serra at gmail.com
Mon May 30 11:28:48 PDT 2011


On May 30, 2011, at 7:01 PM, Xavier Serra Román wrote:

> On May 28, 2011, at 10:14 PM, David García Garzón wrote:
> 
>> Look twice. Processing::GetConfig() really exists. It returns a const reference 
>> to the base class you can then DeepCopy. Not sure how to get a default 
>> constructed one. I thought we had an Species() like method like we have for 
>> enums. We might need to add it.
> 
> Yep, sorry. Don't know how it escaped me, I'm even using it in another function.
> 
> Another thing, I'm implementing now error checking on the network proxy and I wanted
> to use the errors clam gives but all of them are assert, which can't be catched.
> 
> So, for example, when choosing for a new processing a name that is already taken the
> only solution I can think of is search the processing list for the name and:
> a) If it exists, throw exception
> b) If it doesn't, add the processing
> Is this the only way? Should we implement throwing exceptions in clam?

Nevermind again, Network::HasProcessing works in this case




More information about the clam-devel mailing list