def method_missing name, *args
s = name.to_s
if s =~ /=$/
v = args[0]
n = s.chop
unless @typemap
begin
@typemap = Cmpi.const_get(self.objectpath.classname).typemap
rescue NoMethodError
raise RCErrInvalidClass.new(CMPI_RC_ERR_INVALID_CLASS, "Cmpi::#{self.objectpath.classname}.typemap not defined")
end
end
t = @typemap[n]
raise RCErrNotFound.new(CMPI_RC_ERR_NOT_FOUND, "Property '#{n}' of Cmpi::#{self.objectpath.classname}.typemap not defined") unless t
STDERR.printf "Instance.%s = %s[%s]:%04x\n" % [n, v, v.class, t]
self[n,v] = t
else
self[s]
end
end