Porting the Notes_Logic object to C++