Boost logo

Boost Users :

Subject: [Boost-users] [Q] serializing Database Null values (design question)
From: V S P (toreason_at_[hidden])
Date: 2009-06-19 23:55:36


I have my CPP ORM pretty much working

(so that I can read data from the database and serialize it with boost
serialize)
in generic manner.

There is an issue however with 'Nulls' that possibly exist in the
database.

I use underneath OTL c++ db library and it has a 'null indicator' like
many db libraries do.

So if I see a value where null indicator is set to true, should I
serialize it out
and if yes -- is there something like 'NaN' for all the different value
types defined?

or should I skip serializing that specific field?
that would I think work (unless I do not foresee something) -- in the
sense that
the field will not get loaded back by 'unserialize' and therefore will
contain the value
assigned in its constructor.

just wanted to hear opinions on this.

thank you

-- 
  V S P
  toreason_at_[hidden]
-- 
http://www.fastmail.fm - mmm... Fastmail...

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net