LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Functions
PropertySet.cc File Reference

Implementation for PropertySet class. More...

#include "lsst/daf/base/PropertySet.h"
#include <algorithm>
#include <iomanip>
#include <sstream>
#include <stdexcept>
#include "lsst/pex/exceptions/Runtime.h"
#include "lsst/daf/base/DateTime.h"

Go to the source code of this file.

Functions

template<>
void dafBase::PropertySet::add< dafBase::PropertySet::Ptr > (std::string const &name, Ptr const &value)
 
template<>
void dafBase::PropertySet::add< dafBase::PropertySet::Ptr > (std::string const &name, vector< Ptr > const &value)
 

Detailed Description

Implementation for PropertySet class.

Version
$Revision$
Date
$Date$

Contact: Kian-Tat Lim (ktl@s.nosp@m.lac..nosp@m.stanf.nosp@m.ord..nosp@m.edu)

Definition in file PropertySet.cc.

Function Documentation

template<>
void dafBase::PropertySet::add< dafBase::PropertySet::Ptr > ( std::string const &  name,
Ptr const &  value 
)

Definition at line 634 of file PropertySet.cc.

635  {
636  AnyMap::iterator i = _find(name);
637  if (i == _map.end()) {
638  set(name, value);
639  }
640  else {
641  if (i->second->back().type() != typeid(Ptr)) {
642  throw LSST_EXCEPT(pexExcept::TypeError,
643  name + " has mismatched type");
644  }
645  _cycleCheckPtr(value, name);
646  i->second->push_back(value);
647  }
648 }
table::Key< std::string > name
Definition: ApCorrMap.cc:71
#define LSST_EXCEPT(type,...)
Definition: Exception.h:46
template<>
void dafBase::PropertySet::add< dafBase::PropertySet::Ptr > ( std::string const &  name,
vector< Ptr > const &  value 
)

Definition at line 676 of file PropertySet.cc.

677  {
678  AnyMap::iterator i = _find(name);
679  if (i == _map.end()) {
680  set(name, value);
681  }
682  else {
683  if (i->second->back().type() != typeid(Ptr)) {
684  throw LSST_EXCEPT(pexExcept::TypeError,
685  name + " has mismatched type");
686  }
687  _cycleCheckPtrVec(value, name);
688  i->second->insert(i->second->end(), value.begin(), value.end());
689  }
690 }
table::Key< std::string > name
Definition: ApCorrMap.cc:71
#define LSST_EXCEPT(type,...)
Definition: Exception.h:46