<!DOCTYPE Tree SYSTEM "IPSA.dtd">
<Tree chk="1549985199" type="Script" onEnd="default" onBackExit="back">
<Header>
<IFile>
<FileName name="padding">
</FileName>
<Modif date="24/11/2015" user="mhwaneb" site="THESAU">
</Modif>
</IFile>
<ITool name="ime2" revision="7.5.0.1" exedate="13/03/2015">
</ITool>
</Header>
<precel>
</precel>
<cel>
<Start posc=7 posl=1 destc=7 destl=5 ident=10>
</Start>
<Act posc=7 posl=5 destc=7 destl=7 ident=11>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="PADDING_ERROR_TYPE">
</TextBuffer>
</Destination>
</Clear>
<Clear>
<Destination>
<TextBuffer name="TMP">
</TextBuffer>
</Destination>
</Clear>
<Assignment>
<Source>
<TextBuffer name="PADDING_CHARACTER">
</TextBuffer>
</Source>
<Destination>
<TextBuffer name="TMP">
</TextBuffer>
</Destination>
</Assignment>
<Assignment>
<Source>
<FloatVar name="VMEM">
</FloatVar>
</Source>
<Destination>
<FloatVar name="V1">
</FloatVar>
</Destination>
</Assignment>
<Clear>
<Destination>
<TextBuffer name="TMP">
</TextBuffer>
</Destination>
</Clear>
<Assignment>
<Source>
<TextBuffer name="PADDING_BUFFER_IN">
</TextBuffer>
</Source>
<Destination>
<TextBuffer name="TMP">
</TextBuffer>
</Destination>
</Assignment>
<Assignment>
<Source>
<FloatVar name="VMEM">
</FloatVar>
</Source>
<Destination>
<FloatVar name="V2">
</FloatVar>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Test posc=7 posl=9 destyesc=7 destyesl=11 destnoc=11 destnol=9 ident=13>
<Comment>FloatVar V1:Taille du caractère de padding
</Comment>
<MathAndLogic>
<LogicalTest>
<For>
<DataComparison type="EQUAL">
<Source>
<FloatVar name="V1">
</FloatVar>
</Source>
<Source>
<FloatNumber>1
</FloatNumber>
</Source>
</DataComparison>
</For>
</LogicalTest>
</MathAndLogic>
</Test>
<Test posc=7 posl=11 destyesc=7 destyesl=13 destnoc=11 destnol=11 ident=16>
<Comment>NamedFloatVar PADDING_BUFFER_OUT_LENGTH:Taille du buffer de sortie voulu
</Comment>
<Comment>FloatVar V2:Taille du buffer d'entrée
</Comment>
<MathAndLogic>
<LogicalTest>
<For>
<DataComparison type="SUPEQUAL">
<Source>
<NamedFloatVar name="PADDING_BUFFER_OUT_LENGTH">
</NamedFloatVar>
</Source>
<Source>
<FloatVar name="V2">
</FloatVar>
</Source>
</DataComparison>
</For>
</LogicalTest>
</MathAndLogic>
</Test>
<Act posc=7 posl=19 destc=7 destl=15 ident=19>
<MathAndLogic>
<Addition>
<Source>
<FloatNumber>1
</FloatNumber>
</Source>
<Destination>
<FloatVar name="V4">
</FloatVar>
</Destination>
</Addition>
<Assignment>
<Source>
<TextBuffer name="PADDING_CHARACTER">
</TextBuffer>
</Source>
<Destination>
<TextBuffer name="PADDING_BUFFER_OUT">
<Position>
<FloatVar name="V4">
</FloatVar>
</Position>
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Test posc=7 posl=15 destyesc=7 destyesl=19 destnoc=11 destnol=15 ident=21>
<Comment>Boucle: Tant que la taille du buffer de sortie "PADDING_BUFFER_OUT" est strictement inférieure  à la taille  voulue PADDING_BUFFER_OUT_LENGTH, ajouter le caractère de padding
</Comment>
<MathAndLogic>
<LogicalTest>
<For>
<DataComparison type="INFEQUAL">
<Source>
<FloatVar name="V4">
</FloatVar>
</Source>
<Source>
<FloatVar name="V3">
</FloatVar>
</Source>
</DataComparison>
</For>
</LogicalTest>
</MathAndLogic>
</Test>
<End posc=19 posl=15 ident=23>
</End>
<Act posc=11 posl=15 destc=19 destl=15 ident=26>
<MathAndLogic>
<Assignment>
<Source>
<TextBuffer name="PADDING_BUFFER_IN">
</TextBuffer>
</Source>
<Destination>
<TextBuffer name="PADDING_BUFFER_OUT">
<Position>
<FloatVar name="V4">
</FloatVar>
</Position>
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Act posc=7 posl=13 destc=7 destl=15 ident=27>
<Comment>V3 = PADDING_BUFFER_OUT_LENGTH - V2 : Le nombre de caractères à ajouter
</Comment>
<Comment>V4 : Compteur
</Comment>
<MathAndLogic>
<Assignment>
<Source>
<NamedFloatVar name="PADDING_BUFFER_OUT_LENGTH">
</NamedFloatVar>
</Source>
<Destination>
<FloatVar name="V3">
</FloatVar>
</Destination>
</Assignment>
<Subtraction>
<Source>
<FloatVar name="V2">
</FloatVar>
</Source>
<Destination>
<FloatVar name="V3">
</FloatVar>
</Destination>
</Subtraction>
</MathAndLogic>
<MathAndLogic>
<Assignment>
<Source>
<FloatNumber>0
</FloatNumber>
</Source>
<Destination>
<FloatVar name="V4">
</FloatVar>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Test posc=7 posl=7 destyesc=7 destyesl=9 destnoc=11 destnol=7 ident=28>
<Comment>FloatVar V1:Taille du caractère de padding
</Comment>
<MathAndLogic>
<LogicalTest>
<For>
<DataComparison type="DIFFERENT">
<Source>
<FloatVar name="V2">
</FloatVar>
</Source>
<Source>
<FloatNumber>0
</FloatNumber>
</Source>
</DataComparison>
</For>
</LogicalTest>
</MathAndLogic>
</Test>
<Act posc=11 posl=7 destc=19 destl=15 ident=29>
<MathAndLogic>
<Assignment>
<Source>
<ASCIIString value="Erreur - Buffer entree vide">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="PADDING_ERROR_TYPE">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
<MathAndLogic>
<Assignment>
<Source>
<FloatNumber>9
</FloatNumber>
</Source>
<Destination>
<FloatVar name="VCHK">
</FloatVar>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Act posc=11 posl=9 destc=19 destl=15 ident=31>
<MathAndLogic>
<Assignment>
<Source>
<ASCIIString value="Erreur - Taille du caractere de padding incorrecte">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="PADDING_ERROR_TYPE">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
<MathAndLogic>
<Assignment>
<Source>
<FloatNumber>9
</FloatNumber>
</Source>
<Destination>
<FloatVar name="VCHK">
</FloatVar>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Act posc=11 posl=11 destc=19 destl=15 ident=32>
<MathAndLogic>
<Assignment>
<Source>
<ASCIIString value="Erreur - Taille de la chaine entree inferieure a la taille de la chaine de sortie">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="PADDING_ERROR_TYPE">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
<MathAndLogic>
<Assignment>
<Source>
<FloatNumber>9
</FloatNumber>
</Source>
<Destination>
<FloatVar name="VCHK">
</FloatVar>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
</cel>
</Tree>
