improve is_open function

Signed-off-by: Jack <jack.wgm@gmail.com>
add persers.hpp to vc2012 project file

Signed-off-by: Jack <jack.wgm@gmail.com>
improve open

Signed-off-by: Jack <jack.wgm@gmail.com>