2 #include "lsst/meas/extensions/psfex/prefs.hh" 5 namespace lsst {
namespace meas {
namespace extensions {
namespace psfex {
9 char *cfilename =
const_cast<char *
>(filename.
c_str());
12 readprefs(cfilename, 0x0, 0x0, narg);
24 for (
int i = 0; i != narg; ++i) {
26 argkey[i] =
const_cast<char *
>(name.
c_str());
28 argval[i] =
const_cast<char *
>(paramvalues[i].c_str());
31 readprefs(cfilename, &argkey[0], &argval[0], narg);
34 for (
int i = 0; i !=
prefs.ncontext_name; ++i) {
35 _context_names.push_back(
prefs.context_name[i]);
37 for (
int i = 0; i !=
prefs.ncontext_group; ++i) {
38 _context_groups.push_back(
prefs.context_group[i]);
40 for (
int i = 0; i !=
prefs.ngroup_deg; ++i) {
41 _group_degs.push_back(
prefs.group_deg[i]);
47 delete[] _command_line;
54 _command_line =
new char const*[
prefs.ncommand_line + 1];
56 for (i = 0; i !=
prefs.ncommand_line; ++i) {
57 _command_line[i] = argv[i].c_str();
60 prefs.command_line =
const_cast<char **
>(_command_line);
65 if (
prefs.ncat >= MAXFILE) {
68 _catalogs.push_back(filename);
69 prefs.incat_name[
prefs.ncat++] =
const_cast<char *
>((_catalogs.end() - 1)->c_str());
Reports attempts to exceed implementation-defined length limits for some classes. ...
std::vector< std::string > paramNames(bool topLevelOnly=true) const
A variant of names that excludes the names of subproperties.
A base class for image defects.
size_t nameCount(bool topLevelOnly=true) const
Get the number of names in the PropertySet, optionally including those in subproperties.
#define LSST_EXCEPT(type,...)
Create an exception with a given type.
Class for storing generic metadata.
std::string getAsString(std::string const &name) const
Get the last value for a string property name (possibly hierarchical).