void Action::setEvent(bool e) { flags = (flags & ~Event) | ((e) ? Event : 0); if (e) { setDefined(true); } else { if (state == 0) { setDefined(false); } } }
void TableInfo::putBytes(RecordType &rec, UINT n, const void *v) const { const ColumnInfo &column = m_columns[n]; memcpy(getFieldAddr(rec,n), v, column.size()); if(isNullAllowed(column.getType())) { setDefined(rec,n,true); } }
inline int QtMultiArg::process( QtArgCmdLineContext & context ) { if( isWithValue() ) { ++m_count; return QtArg::process( context ); } else { bool ok = false; int intValue = 0; if( !context.atEnd() ) { const QString value = context.next(); intValue = value.toInt( &ok ); if( !ok ) context.putBack(); } if( ok ) m_count += intValue; else ++m_count; setPresent( true ); if( !isDefined() ) { setValue( QVariant( true ) ); setDefined( true ); } return 1; } return 0; }
void TableInfo::setUndefined(RecordType &rec, UINT n) const { setDefined(rec,n,false); }
void Action::setState(State* s) { state = s; setDefined(true); }
StBndBox::StBndBox(const StGLVec3& theMin, const StGLVec3& theMax) : myMin(theMin), myMax(theMax) { setDefined(); }