11 n = item_name.find(
'_');
12 if (n != std::string::npos)
14 spec_no = atol(item_name.c_str()+n+1);
15 return getItem<T>(item_name.substr(0,n), &spec_no, 1, &value, status);
20 return getItem<T>(item_name, &spec_no, 0, &value, status);
29 std::string sitem_name;
33 item = findItem(item_name,
false);
36 for(j=0; j < (nspec == 0 ? 1 : nspec); j++)
38 lVal[j] = *(item->
value);
46 item = findItem(item_name,
true);
66 for(j=0; j<nspec; j++)
70 for(i=0; i<m_ndet; i++)
72 if (m_spec_array[i] == spec_array[j])
80 lVal[j] = lVal[j] / n;
90 item = findItem(item_name,
false);
93 item = findItem(item_name,
true);
99 dims_array[0] = *(item->
dim0);
104 dims_array[0] = *(item->
dim0);
105 dims_array[1] = *(item->
dim1);
113 template <
typename T>
118 item = findItem(item_name,
false);
121 item = findItem(item_name,
true);
133 for(k=0; k<nspec; k++)
137 larray[j + k * n] = item->
value[j];
145 template <
typename T>
150 n = item_name.find(
'_');
151 if (n != std::string::npos)
153 spec_no = atol(item_name.c_str()+n+1);
154 return getIntArrayItem(item_name.substr(0,n), &spec_no, 1, larray, status);
159 return getIntArrayItem(item_name, &spec_no, 1, larray, status);
int getArrayItemSize(const std::string &item_name, int *dims_array, int &ndims, DAEstatus &status)
int getArrayItem(const std::string &item_name, long *spec_array, int nspec, T *larray, DAEstatus &status)
int getItem(const std::string &item_name, T &value, DAEstatus &status)