prototypes for sharedstring.h
More...
Go to the source code of this file.
prototypes for sharedstring.h
Definition in file sharedstring.h.
◆ DescriptorIndex()
int DescriptorIndex |
( |
char * |
root, |
|
|
int * |
pindex, |
|
|
char * |
descriptor |
|
) |
| |
Definition at line 20 of file DescriptorIndex.cpp.
25 pch = strtok (descriptor,
"_");
26 if(!pch)
_error_(
"descriptor " << descriptor <<
" is not correctly formatted!");
28 if (strncmp(pch,
"scaled",6)==0){
30 pch = strtok (NULL,
"_");
31 if(!pch)
_error_(
"scaled descriptor " << descriptor <<
" is not correctly formatted!");
32 memcpy(root,pch,(strlen(pch)+1)*
sizeof(
char));
35 pch = strtok (NULL,
"_");
40 sscanf(pch,
"%i",pindex);
44 else if (strncmp(pch,
"indexed",7)==0){
46 pch = strtok (NULL,
"_");
47 if(!pch)
_error_(
"indexed descriptor " << descriptor <<
" is not correctly formatted!");
48 memcpy(root,pch,(strlen(pch)+1)*
sizeof(
char));
50 pch = strtok (NULL,
"_");
51 if(!pch)
_error_(
"indexed descriptor " << descriptor <<
" is not correctly formatted!");
52 sscanf(pch,
"%i",pindex);
55 else if (strncmp(pch,
"nodal",5)==0){
57 pch = strtok (NULL,
"_");
58 if(!pch)
_error_(
"nodal descriptor " << descriptor <<
" is not correctly formatted!");
59 memcpy(root,pch,(strlen(pch)+1)*
sizeof(
char));
61 pch = strtok (NULL,
"_");
62 if(!pch)
_error_(
"nodal descriptor " << descriptor <<
" is not correctly formatted!");
63 sscanf(pch,
"%i",pindex);
68 memcpy(root,pch,(strlen(pch)+1)*
sizeof(
char));
◆ ApiPrintf()
void ApiPrintf |
( |
const char * |
string | ) |
|