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
Public Member Functions | Public Attributes | List of all members
lsst.daf.persistence.butlerLocation.ButlerLocation Class Reference
Inheritance diagram for lsst.daf.persistence.butlerLocation.ButlerLocation:

Public Member Functions

def __init__
 
def __str__
 
def getPythonType
 
def getCppType
 
def getStorageName
 
def getLocations
 
def getAdditionalData
 

Public Attributes

 pythonType
 
 cppType
 
 storageName
 
 locationList
 
 additionalData
 

Detailed Description

ButlerLocation is a struct-like class that holds information needed to
persist and retrieve an object using the LSST Persistence Framework.

Mappers should create and return ButlerLocations from their
map_{datasetType} methods.

Definition at line 30 of file butlerLocation.py.

Constructor & Destructor Documentation

def lsst.daf.persistence.butlerLocation.ButlerLocation.__init__ (   self,
  pythonType,
  cppType,
  storageName,
  locationList,
  dataId 
)

Definition at line 37 of file butlerLocation.py.

37 
38  def __init__(self, pythonType, cppType, storageName, locationList, dataId):
39  self.pythonType = pythonType
40  self.cppType = cppType
41  self.storageName = storageName
42  if hasattr(locationList, '__iter__'):
43  self.locationList = locationList
44  else:
45  self.locationList = [locationList]
47  for k, v in dataId.iteritems():
48  self.additionalData.set(k, v)
Class for storing generic metadata.
Definition: PropertySet.h:82

Member Function Documentation

def lsst.daf.persistence.butlerLocation.ButlerLocation.__str__ (   self)

Definition at line 49 of file butlerLocation.py.

49 
50  def __str__(self):
51  s = "%s at %s(%s)" % (self.pythonType, self.storageName,
52  ", ".join(self.locationList))
53  return s
def lsst.daf.persistence.butlerLocation.ButlerLocation.getAdditionalData (   self)

Definition at line 66 of file butlerLocation.py.

def lsst.daf.persistence.butlerLocation.ButlerLocation.getCppType (   self)

Definition at line 57 of file butlerLocation.py.

57 
58  def getCppType(self):
59  return self.cppType
def lsst.daf.persistence.butlerLocation.ButlerLocation.getLocations (   self)

Definition at line 63 of file butlerLocation.py.

63 
64  def getLocations(self):
65  return self.locationList
def lsst.daf.persistence.butlerLocation.ButlerLocation.getPythonType (   self)

Definition at line 54 of file butlerLocation.py.

54 
55  def getPythonType(self):
56  return self.pythonType
def lsst.daf.persistence.butlerLocation.ButlerLocation.getStorageName (   self)

Definition at line 60 of file butlerLocation.py.

60 
61  def getStorageName(self):
62  return self.storageName

Member Data Documentation

lsst.daf.persistence.butlerLocation.ButlerLocation.additionalData

Definition at line 45 of file butlerLocation.py.

lsst.daf.persistence.butlerLocation.ButlerLocation.cppType

Definition at line 39 of file butlerLocation.py.

lsst.daf.persistence.butlerLocation.ButlerLocation.locationList

Definition at line 42 of file butlerLocation.py.

lsst.daf.persistence.butlerLocation.ButlerLocation.pythonType

Definition at line 38 of file butlerLocation.py.

lsst.daf.persistence.butlerLocation.ButlerLocation.storageName

Definition at line 40 of file butlerLocation.py.


The documentation for this class was generated from the following file: