c++ - Accessing levels -


c->repo->findbyid(rid)   ; 

what want use findbyid() function in module accessing through c variable i'm trying use protected.is there way specify control class allowed access repo , function found in medrepo?or method use go there?i've tryed declaring variable of type medrepo vtable error destructors , can't geet rid of it.

consoleui::consoleui(control *cu) {     c = cu; } 

definition of c , it's type

 class control { ...     protected:         medrepo* repo;         medvalidator* validator;     }; 

you can either add public getter repo pointer, or declare consoleui friend of control (and maybe of medrepo well, depends on access level of findbyid() )


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -