Changeset 171 for cpp/frams/util/extvalue.h
- Timestamp:
- 03/13/14 01:00:33 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified cpp/frams/util/extvalue.h ¶
r144 r171 58 58 bool matchesInterfaceName(ParamInterface* pi) const {return !strcmp(interfaceName(),pi->getName());} 59 59 void* getTarget() const {return (subtype&1)?dbobject:object;} 60 void* getTarget(const char* classname, bool through_barrier=true ) const;60 void* getTarget(const char* classname, bool through_barrier=true, bool warn=true) const; 61 61 void setEmpty() {decref();subtype=0;param=NULL;object=NULL;} 62 62 int isEmpty() const {return !param;} … … 142 142 bool makeUnique() {return (type==TObj) && odata().makeUnique();} //< @return false if nothing has changed 143 143 ExtPType getType() {return type;} 144 void *getObjectTarget(const char* classname ) {return (type==TObj)?getObject().getTarget(classname):0;}144 void *getObjectTarget(const char* classname,bool warn=true) const; 145 145 void setInt(long v) {if (type!=TInt) setri(v); else idata()=v;} 146 146 void setDouble(double v) {if (type!=TDouble) setrd(v); else ddata()=v;}
Note: See TracChangeset
for help on using the changeset viewer.