Generic function for updating a compare object with information passed to it, that has methods based on the class of the info argument.
updateCompareObject(x, compObj)
Object of information with classes related to the relevant section of the dataCompareRobject
dataCompareRobject to be updated
compObj Updated dataCompareRobject