Commit 87b27f0a authored by jclamber's avatar jclamber

py_unsio update

git-svn-id: http://svn.oamp.fr/repos/unsio/trunk@170 ce2cc22f-6084-46ce-a062-084b172ee5dc
parent 01b0e3de
......@@ -222,8 +222,29 @@ namespace uns {
}
return ok;
}
// ----------------------------------------------------------------------------
// getData
// int
bool CunsIn::getData(const std::string prop,
int * size,int ** iarray) {
int * data=NULL;
int nbody=0;
*size=0;
bool ok=snapshot->getData(prop,&nbody,&data);
if (ok) {
int dim=1;
*iarray = data;
*size=nbody*dim;
}
return ok;
}
// ----------------------------------------------------------------------------
// getData
// int
bool CunsIn::getData(const std::string prop,int * ivalue) {
bool ok=snapshot->getData(prop,ivalue);
return ok;
}
// ----------------------------------------------------------------------------
// WRITING OPERATIONS
// ---------------------------------------------------------------------------
......
......@@ -92,19 +92,21 @@ namespace uns {
//
// py wrapper
//
int nextFrame(const char * _bits);
// float
bool getData(const std::string comp,const std::string prop,
int * size,float ** farray);
bool getData(const std::string prop,
int * size,float ** farray);
bool getData(const std::string prop,float * fvalue);
// int
bool getData(const std::string comp,const std::string prop,
int * size,int ** iarray);
bool getData(const std::string prop,
int * size,int ** iarray);
bool getData(const std::string prop,int * ivalue);
// py wrapper
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment