Skip to content

Commit

Permalink
Add A Lucas SPICE2MM Xml
Browse files Browse the repository at this point in the history
  • Loading branch information
erupnik committed Mar 13, 2018
1 parent b1ad934 commit c660a5c
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CodeGenere/File2String/Str_SuperposImage.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "StdAfx.h"
const char * (theNameVar_SuperposImage[1993]) = {
const char * (theNameVar_SuperposImage[1994]) = {
"<GenCpp>\n",
"\n",
"\n",
Expand Down Expand Up @@ -1653,6 +1653,7 @@ const char * (theNameVar_SuperposImage[1993]) = {
" <IndCol Nb=\"1\" Type=\"double\"> </IndCol>\n",
" <P1 Nb=\"1\" Type=\"Pt3dr\"> </P1>\n",
" <P2 Nb=\"1\" Type=\"Pt3dr\"> </P2>\n",
" <P3 Nb=\"*\" Type=\"Pt3dr\"> </P3>\n",
"</Xml_SLSRay>\n",
"\n",
"<Xml_OneLineSLS Nb=\"1\" Class=\"true\" ToReference=\"true\">\n",
Expand Down
4 changes: 4 additions & 0 deletions include/XML_GEN/SuperposImage.h
Original file line number Diff line number Diff line change
Expand Up @@ -7403,10 +7403,14 @@ class cXml_SLSRay

Pt3dr & P2();
const Pt3dr & P2()const ;

std::list< Pt3dr > & P3();
const std::list< Pt3dr > & P3()const ;
private:
double mIndCol;
Pt3dr mP1;
Pt3dr mP2;
std::list< Pt3dr > mP3;
};
cElXMLTree * ToXMLTree(const cXml_SLSRay &);

Expand Down
1 change: 1 addition & 0 deletions include/XML_GEN/SuperposImage.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1651,6 +1651,7 @@
<IndCol Nb="1" Type="double"> </IndCol>
<P1 Nb="1" Type="Pt3dr"> </P1>
<P2 Nb="1" Type="Pt3dr"> </P2>
<P3 Nb="*" Type="Pt3dr"> </P3>
</Xml_SLSRay>

<Xml_OneLineSLS Nb="1" Class="true" ToReference="true">
Expand Down
40 changes: 37 additions & 3 deletions src/XML_GEN/SuperposImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24040,18 +24040,44 @@ const Pt3dr & cXml_SLSRay::P2()const
return mP2;
}


std::list< Pt3dr > & cXml_SLSRay::P3()
{
return mP3;
}

const std::list< Pt3dr > & cXml_SLSRay::P3()const
{
return mP3;
}

void BinaryUnDumpFromFile(cXml_SLSRay & anObj,ELISE_fp & aFp)
{
BinaryUnDumpFromFile(anObj.IndCol(),aFp);
BinaryUnDumpFromFile(anObj.P1(),aFp);
BinaryUnDumpFromFile(anObj.P2(),aFp);
{ int aNb;
BinaryUnDumpFromFile(aNb,aFp);
for( int aK=0 ; aK<aNb ; aK++)
{
Pt3dr aVal;
BinaryUnDumpFromFile(aVal,aFp);
anObj.P3().push_back(aVal);
}
} ;
}

void BinaryDumpInFile(ELISE_fp & aFp,const cXml_SLSRay & anObj)
{
BinaryDumpInFile(aFp,anObj.IndCol());
BinaryDumpInFile(aFp,anObj.P1());
BinaryDumpInFile(aFp,anObj.P2());
BinaryDumpInFile(aFp,(int)anObj.P3().size());
for( std::list< Pt3dr >::const_iterator iT=anObj.P3().begin();
iT!=anObj.P3().end();
iT++
)
BinaryDumpInFile(aFp,*iT);
}

cElXMLTree * ToXMLTree(const cXml_SLSRay & anObj)
Expand All @@ -24061,6 +24087,12 @@ cElXMLTree * ToXMLTree(const cXml_SLSRay & anObj)
aRes->AddFils(::ToXMLTree(std::string("IndCol"),anObj.IndCol())->ReTagThis("IndCol"));
aRes->AddFils(::ToXMLTree(std::string("P1"),anObj.P1())->ReTagThis("P1"));
aRes->AddFils(::ToXMLTree(std::string("P2"),anObj.P2())->ReTagThis("P2"));
for
( std::list< Pt3dr >::const_iterator it=anObj.P3().begin();
it !=anObj.P3().end();
it++
)
aRes->AddFils(::ToXMLTree(std::string("P3"),(*it))->ReTagThis("P3"));
aRes->mGXml = anObj.mGXml;
XMLPopContext(anObj.mGXml);
return aRes;
Expand All @@ -24076,9 +24108,11 @@ void xml_init(cXml_SLSRay & anObj,cElXMLTree * aTree)
xml_init(anObj.P1(),aTree->Get("P1",1)); //tototo

xml_init(anObj.P2(),aTree->Get("P2",1)); //tototo

xml_init(anObj.P3(),aTree->GetAll("P3",false,1));
}

std::string Mangling( cXml_SLSRay *) {return "004804A8DCBF1BA1FBBF";};
std::string Mangling( cXml_SLSRay *) {return "C65F5A5A245D11C2FD3F";};


double & cXml_OneLineSLS::IndLine()
Expand Down Expand Up @@ -24153,7 +24187,7 @@ void xml_init(cXml_OneLineSLS & anObj,cElXMLTree * aTree)
xml_init(anObj.Rays(),aTree->GetAll("Rays",false,1));
}

std::string Mangling( cXml_OneLineSLS *) {return "400084BE18ADACC5FA3F";};
std::string Mangling( cXml_OneLineSLS *) {return "AC21AFDE433F75E2FD3F";};


cTplValGesInit< bool > & cXml_ScanLineSensor::LineImIsScanLine()
Expand Down Expand Up @@ -24351,7 +24385,7 @@ void xml_init(cXml_ScanLineSensor & anObj,cElXMLTree * aTree)
xml_init(anObj.Lines(),aTree->GetAll("Lines",false,1));
}

std::string Mangling( cXml_ScanLineSensor *) {return "B848536DE6351DA5FB3F";};
std::string Mangling( cXml_ScanLineSensor *) {return "024C201F20E752A4FDBF";};


std::vector< cMonomXY > & cXml_PolynXY::Monomes()
Expand Down

0 comments on commit c660a5c

Please sign in to comment.