U
unknown;
hi,
i've got the following classes:
class CImage {}
class CImageBlackWhite : public CImage {}
class CImageColor : public CImage {}
and i've got a global function
void function_name (CImage * image) {
if image is instace of CImageBlackWhite {
do something
}
else if image is instance of CImageColor {
do something else
}
return;
}
my question/problem:
i don't know how to get the name of the class from the variable image.
thanks!!
i've got the following classes:
class CImage {}
class CImageBlackWhite : public CImage {}
class CImageColor : public CImage {}
and i've got a global function
void function_name (CImage * image) {
if image is instace of CImageBlackWhite {
do something
}
else if image is instance of CImageColor {
do something else
}
return;
}
my question/problem:
i don't know how to get the name of the class from the variable image.
thanks!!