CMS 3D CMS Logo

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__ (self, json_file_name)
 
def __str__ (self)
 
def data (self)
 
def raw (self)
 
- Public Member Functions inherited from data_sources.data_source
def __init__ (self)
 
def __repr__ (self)
 
def get_data (self)
 
- Public Member Functions inherited from data_sources.node
def __init__ (self, data=None)
 
def __str__ (self)
 
def add_child (self, node_data)
 
def child (self, index)
 
def children (self)
 
def data (self)
 
def is_leaf (self)
 
def left_child (self)
 
def right_child (self)
 

Private Attributes

 _data
 
 _file_name
 
 _sub_data
 

Detailed Description

Definition at line 57 of file data_sources.py.

Constructor & Destructor Documentation

def data_sources.json_file.__init__ (   self,
  json_file_name 
)

Definition at line 63 of file data_sources.py.

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

Member Function Documentation

def data_sources.json_file.__str__ (   self)
def data_sources.json_file.data (   self)
def data_sources.json_file.raw (   self)

Definition at line 75 of file data_sources.py.

References data_sources.node._data.

75  def raw(self):
76  return self._data
77 

Member Data Documentation

data_sources.json_file._data
private
data_sources.json_file._file_name
private

Definition at line 65 of file data_sources.py.

data_sources.json_file._sub_data
private

Definition at line 70 of file data_sources.py.