コード例 #1
0
ファイル: Convertor.cpp プロジェクト: Cmdu76/CppFileCreator
void Convertor::run()
{
    while(std::getline(mInput,mTempLine))
    {
        initializeNewLoop();

        if(commentTesterOpen())
        {
            commentTesterClose();
            continue;
        }

        if(firstCheck())
            continue;
		if(handleNamespace())
	    	continue;
        if(handleStruct())
            continue;
        if(cutLine())
            continue;
        if(secondCheck())
            continue;
        handlePost();
        if(mType == Type::None)
            handleCtor();
        if(mType == Type::None)
            handleDtor();
        if(mType == Type::None)
            handleVoid();
        if(mType == Type::None)
            mType = Type::Return;

        write();
    }
}
コード例 #2
0
ファイル: anonElem.cpp プロジェクト: ericsium/qxmledit
void Element::anonymizeElement(AnonContext *context)
{
    AnonContext thisContext(context, tag());
    handleNamespace(&thisContext);
    thisContext.setExceptionForElement();
    if(context->isCollectingData()) {
        AnonException *exception = thisContext.getException();
        if(thisContext.canAnonymize(exception)) {
            context->setOrigData(this, _tag);
        }
    }

    foreach(Attribute * attribute, attributes) {
        attribute->anonymize(&thisContext);
    }