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
Post a Comment