jgtech 0 Newbie Poster

HI all,
I am not c++ expert. Just a beginner. I have few requirements to design the pattern.

Simple requirement is
1) i have a table in sqlite say T1 with ( name, version )
2) I daemon which has is watching specific directory with inotification for the event
IN_CLOSE_WRITE. That means whenever i there is a file copied into the specific
directory, i need to parse that file and find the name and version and update to the
database.
3) Any suggestion to come up with good design for this requirement ?