| 960 |
|
{ |
| 961 |
|
if (atom4refs.size()>4) |
| 962 |
|
{ |
| 963 |
< |
obErrorLog.ThrowError(__FUNCTION__, "More than 4 atoms in atom4refs", obDebug); |
| 963 |
> |
obErrorLog.ThrowError(__func__, "More than 4 atoms in atom4refs", obDebug); |
| 964 |
|
return(false); |
| 965 |
|
} |
| 966 |
|
switch(t){ |
| 968 |
|
case output:_atom4refo = atom4refs;break; |
| 969 |
|
case calcvolume:_atom4refc = atom4refs;break; |
| 970 |
|
default: |
| 971 |
< |
obErrorLog.ThrowError(__FUNCTION__, "AtomRefType called is invalid", obDebug); |
| 971 |
> |
obErrorLog.ThrowError(__func__, "AtomRefType called is invalid", obDebug); |
| 972 |
|
return(false); |
| 973 |
|
} |
| 974 |
|
return (true); |
| 980 |
|
case output: _atom4refo.push_back(atomref);break; |
| 981 |
|
case calcvolume:_atom4refc.push_back(atomref);break; |
| 982 |
|
default: |
| 983 |
< |
obErrorLog.ThrowError(__FUNCTION__, "AtomRefType called is invalid", obDebug); |
| 983 |
> |
obErrorLog.ThrowError(__func__, "AtomRefType called is invalid", obDebug); |
| 984 |
|
return(false); |
| 985 |
|
} |
| 986 |
|
|
| 994 |
|
case output: return(_atom4refo[a]);break; |
| 995 |
|
case calcvolume: return(_atom4refc[a]);break; |
| 996 |
|
default: |
| 997 |
< |
obErrorLog.ThrowError(__FUNCTION__, "AtomRefType called is invalid", obDebug); |
| 997 |
> |
obErrorLog.ThrowError(__func__, "AtomRefType called is invalid", obDebug); |
| 998 |
|
return(false); |
| 999 |
|
} |
| 1000 |
|
} |
| 1011 |
|
return(_atom4refc); |
| 1012 |
|
break; |
| 1013 |
|
default: |
| 1014 |
< |
obErrorLog.ThrowError(__FUNCTION__, "AtomRefType called is invalid", obDebug); |
| 1014 |
> |
obErrorLog.ThrowError(__func__, "AtomRefType called is invalid", obDebug); |
| 1015 |
|
return(_atom4refo); |
| 1016 |
|
} |
| 1017 |
|
} |
| 1029 |
|
case calcvolume: |
| 1030 |
|
return(unsigned int)_atom4refc.size(); |
| 1031 |
|
default: |
| 1032 |
< |
obErrorLog.ThrowError(__FUNCTION__, "AtomRefType called is invalid", obDebug); |
| 1032 |
> |
obErrorLog.ThrowError(__func__, "AtomRefType called is invalid", obDebug); |
| 1033 |
|
return(0); |
| 1034 |
|
} |
| 1035 |
|
} |