implement extract in improper_class2.cpp
This commit is contained in:
committed by
GitHub
parent
909796b858
commit
26e1b5d101
@ -843,3 +843,15 @@ void ImproperClass2::write_data(FILE *fp)
|
||||
aa_theta0_1[i]*180.0/MY_PI,aa_theta0_2[i]*180.0/MY_PI,
|
||||
aa_theta0_3[i]*180.0/MY_PI);
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
return ptr to internal members upon request
|
||||
------------------------------------------------------------------------ */
|
||||
|
||||
void *ImproperClass2::extract(const char *str, int &dim)
|
||||
{
|
||||
dim = 1;
|
||||
if (strcmp(str, "k0") == 0) return (void *) k0;
|
||||
if (strcmp(str, "chi0") == 0) return (void *) chi0;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user