CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
data_sources.json_file Class Reference
Inheritance diagram for data_sources.json_file:
data_sources.data_source data_sources.node

Public Member Functions

def __init__
 
def __str__
 
def data
 
def raw
 
- Public Member Functions inherited from data_sources.data_source
def __init__
 
def __repr__
 
def get_data
 
- Public Member Functions inherited from data_sources.node
def __init__
 
def __str__
 
def add_child
 
def child
 
def children
 
def data
 
def is_leaf
 
def left_child
 
def right_child
 

Private Attributes

 _data
 
 _file_name
 
 _sub_data
 

Detailed Description

Definition at line 97 of file data_sources.py.

Constructor & Destructor Documentation

def data_sources.json_file.__init__ (   self,
  json_file_name 
)

Definition at line 103 of file data_sources.py.

104  def __init__(self, json_file_name):
105  # read the file, then parse into JSON object
106  self._file_name = json_file_name
107  try:
108  with open(self._file_name, "r") as handle:
109  contents = "".join(handle.readlines())
110  data = json.loads(contents)
111  self._data = data
112  self._sub_data = data
113  except IOError as io:
114  exit("Couldn't open the file '%s'" % self._file_name)
static std::string join(char **cmd)
Definition: RemoteFile.cc:18

Member Function Documentation

def data_sources.json_file.__str__ (   self)

Definition at line 121 of file data_sources.py.

References data_sources.data_source.__repr__(), svgfig.SVG.__repr__(), svgfig.Fig.__repr__(), svgfig.Plot.__repr__(), svgfig.Frame.__repr__(), svgfig.Path.__repr__(), svgfig.Curve.__repr__(), svgfig.Curve.Sample.__repr__(), svgfig.Curve.Samples.__repr__(), svgfig.Poly.__repr__(), svgfig.Text.__repr__(), svgfig.TextGlobal.__repr__(), svgfig.Dots.__repr__(), svgfig.Line.__repr__(), svgfig.LineGlobal.__repr__(), svgfig.VLine.__repr__(), svgfig.HLine.__repr__(), svgfig.Rect.__repr__(), svgfig.Ellipse.__repr__(), svgfig.Ticks.__repr__(), svgfig.CurveAxis.__repr__(), svgfig.LineAxis.__repr__(), svgfig.XAxis.__repr__(), svgfig.YAxis.__repr__(), svgfig.Axes.__repr__(), svgfig.HGrid.__repr__(), svgfig.VGrid.__repr__(), svgfig.Grid.__repr__(), svgfig.XErrorBars.__repr__(), and svgfig.YErrorBars.__repr__().

Referenced by BeautifulSoup.Tag.__repr__(), BeautifulSoup.Tag.__unicode__(), and BeautifulSoup.Tag.prettify().

122  def __str__(self):
123  return self.__repr__()
def data_sources.json_file.data (   self)

Definition at line 115 of file data_sources.py.

References data_sources.node._data, and HcalTriggerKey._data.

Referenced by cuy.FindIssue.__init__(), data_sources.json_list.as_dicts(), data_sources.json_list.as_table(), and data_sources.json_list.last().

116  def data(self):
117  return json_data_node.make(self._data)
def data_sources.json_file.raw (   self)

Definition at line 118 of file data_sources.py.

References data_sources.node._data, and HcalTriggerKey._data.

119  def raw(self):
120  return self._data

Member Data Documentation

data_sources.json_file._data
private

Definition at line 110 of file data_sources.py.

Referenced by XML2Python.DataNode.__init__(), data_sources.json_data_node.__init__(), python.XML2Python.DataNode.__nonzero__(), XML2Python.DataNode.__nonzero__(), python.XML2Python.DataNode.__repr__(), XML2Python.DataNode.__repr__(), XML2Python.DataNode.__str__(), python.XML2Python.DataNode.__str__(), data_sources.json_data_node.__str__(), cfg-viewer.unscheduled._proceed(), cfg-viewer.unscheduled._saveData(), data_sources.json_dict.add_key(), data_sources.json_data_node.data(), data_sources.json_data_node.find(), data_sources.json_list.next(), data_sources.json_data_node.raw(), data_sources.json_data_node.set(), and XML2Python.DataNode.stringify().

data_sources.json_file._file_name
private

Definition at line 105 of file data_sources.py.

data_sources.json_file._sub_data
private

Definition at line 111 of file data_sources.py.