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 add_child (self, node_data)
 
def child (self, index)
 
def children (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

◆ __init__()

def data_sources.json_file.__init__ (   self,
  json_file_name 
)

Reimplemented from data_sources.node.

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 

Member Function Documentation

◆ __str__()

def data_sources.json_file.__str__ (   self)

◆ data()

def data_sources.json_file.data (   self)

Reimplemented from data_sources.node.

Definition at line 72 of file data_sources.py.

72  def data(self):
73  return json_data_node.make(self._data)
74 

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().

◆ raw()

def data_sources.json_file.raw (   self)

Definition at line 75 of file data_sources.py.

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

References data_sources.node._data.

Member Data Documentation

◆ _data

data_sources.json_file._data
private

◆ _file_name

data_sources.json_file._file_name
private

Definition at line 65 of file data_sources.py.

◆ _sub_data

data_sources.json_file._sub_data
private

Definition at line 70 of file data_sources.py.

join
static std::string join(char **cmd)
Definition: RemoteFile.cc:17
TriggerAnalyzer.__str__
def __str__(self)
Definition: TriggerAnalyzer.py:103
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79