Made the pointer to current file a private member of an anonymous shell class, thus getting accessors