Пример #1
0
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
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);
    }