Definition at line 7 of file ContentHandler.py.
◆ __init__()
def ContentHandler.ContentHandler.__init__ |
( |
|
self, |
|
|
|
inputName, |
|
|
|
namesAndTypes |
|
) |
| |
Definition at line 8 of file ContentHandler.py.
8 def __init__(self,inputName,namesAndTypes):
10 self.AppendToDictionary = {}
11 self.NamesAndTypes = namesAndTypes
◆ GetContent()
def ContentHandler.ContentHandler.GetContent |
( |
|
self, |
|
|
|
contentList, |
|
|
|
wholeContentList |
|
) |
| |
Definition at line 24 of file ContentHandler.py.
24 def GetContent(self,contentList,wholeContentList):
27 for item
in contentList:
28 components = item.split(
".")
29 if len(components)==0:
31 mainItem = self.mainContainerLine(components[0])
34 if len(components)==1:
36 if (mainItem
not in mainOutput):
37 mainOutput.append(mainItem)
40 if (components[0]+
"." in wholeContentList):
41 if (components[0]
not in auxOutput.keys()):
42 auxOutput[components[0]] =
""
45 if (len(components)==2):
46 if (components[1] ==
""):
47 wholeContentList.append(components[0]+
".")
48 auxOutput[components[0]] =
""
50 if (components[0]
not in auxOutput.keys()):
51 auxOutput[components[0]] = components[1:]
52 if (components[0]
in auxOutput.keys()):
53 auxOutput[components[0]] =
list(
set(auxOutput[components[0]]) |
set(components[1:]))
54 return mainOutput,auxOutput
◆ mainContainerLine()
def ContentHandler.ContentHandler.mainContainerLine |
( |
|
self, |
|
|
|
containerName |
|
) |
| |
Definition at line 13 of file ContentHandler.py.
13 def mainContainerLine(self,containerName):
14 theDictionary = self.NamesAndTypes.
copy()
15 theDictionary.update (self.AppendToDictionary)
17 if containerName
in theDictionary.keys():
18 line = theDictionary[containerName]+
"#"+containerName
20 msg.warning(
'Collection with name %s not found in input file or in definitions from user. No action will be taken for this collection.', containerName)
◆ AppendToDictionary
ContentHandler.ContentHandler.AppendToDictionary |
◆ name
ContentHandler.ContentHandler.name |
◆ NamesAndTypes
ContentHandler.ContentHandler.NamesAndTypes |
The documentation for this class was generated from the following file:
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.