CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 55 of file data_sources.py.

Constructor & Destructor Documentation

def data_sources.json_file.__init__ (   self,
  json_file_name 
)

Definition at line 61 of file data_sources.py.

61 
62  def __init__(self, json_file_name):
63  # read the file, then parse into JSON object
64  self._file_name = json_file_name
65  with open(self._file_name, "r") as handle:
66  contents = "".join(handle.readlines())
67  data = json.loads(contents)
68  self._data = data
69  self._sub_data = data
static std::string join(char **cmd)
Definition: RemoteFile.cc:19

Member Function Documentation

def data_sources.json_file.__str__ (   self)

Definition at line 76 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 edmStreamStallGrapher.Point.__repr__(), BeautifulSoup.Tag.__repr__(), BeautifulSoup.Tag.__unicode__(), and BeautifulSoup.Tag.prettify().

76 
77  def __str__(self):
78  return self.__repr__()
def data_sources.json_file.data (   self)

Definition at line 70 of file data_sources.py.

References data_sources.node._data.

Referenced by data_sources.json_list.as_dicts(), data_sources.json_list.as_table(), data_sources.json_list.get_members(), and data_sources.json_list.last().

70 
71  def data(self):
72  return json_data_node.make(self._data)
def data_sources.json_file.raw (   self)

Definition at line 73 of file data_sources.py.

References data_sources.node._data.

73 
74  def raw(self):
75  return self._data

Member Data Documentation

data_sources.json_file._data
private

Definition at line 67 of file data_sources.py.

Referenced by XML2Python.DataNode.__init__(), data_sources.json_data_node.__init__(), data_sources.json_list.__next__(), 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__(), data_sources.json_dict.add_key(), data_sources.json_data_node.data(), data_sources.json_data_node.find(), 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 63 of file data_sources.py.

data_sources.json_file._sub_data
private

Definition at line 68 of file data_sources.py.