예제 #1
0
파일: zkb.cpp 프로젝트: opieproject/opie
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);
  }
}
예제 #3
0
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);
}
예제 #5
0
파일: zkb.cpp 프로젝트: opieproject/opie
void Action::setState(State* s) {
    state = s;
    setDefined(true);
}
예제 #6
0
StBndBox::StBndBox(const StGLVec3& theMin,
                   const StGLVec3& theMax)
: myMin(theMin),
  myMax(theMax) {
    setDefined();
}