[omniORB] simple question on general Corba

Sveta Shasharina sveta@txcorp.com
Mon, 10 Sep 2001 14:07:49 -0600


Hi!

I never used attributes before and decided to use them 
instead od structs because I want inheritance and 
thus have to go with interfaces with attributes:

interface Unit {
	attribute string name;
}

interface Param : Unit {
	attribute double value;
}

Now, how I implement this?
Will does NOT work:

class UnitImpl : public virtual POA_Unit {
	char* name() {returm name;}
	void name(const char* n) {name = n;}
}

class ParamImpl: public virtual POA_Param, public UnitImpl {
	CORBA double value() {return value;}
	void value(CORBA::double d) {value = d;}
};

Thanks,
________________________________________

Svetlana Shasharina -- sveta@txcorp.com
Tech-X Corporation  -- www.techxhome.com
Ph:   (720) 563-0322
Cell: (720) 841-4301