1b764d21f5e4fad656c03fd4d3d8ed05560d17b7
[osm/LW-UI.git] / lib / parser.py
1 #
2 # Copyright 2017 CNIT - Consorzio Nazionale Interuniversitario per le Telecomunicazioni
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 #
16
17 import json
18 import pyaml
19 import yaml
20 from lib.util import Util
21 import logging
22 import traceback
23 import glob
24 import os
25
26
27 class Parser(object):
28 """Parser methods base class
29
30 """
31
32 def __init__(self):
33 pass
34
35 @classmethod
36 def importprojectdir(cls,dir_project, type):
37 """Imports all files under a given folder
38
39 Returns an empty project
40 """
41
42 project = {}
43 return project
44
45 def get_all_ns_descriptors(self, nsd_id, project_data):
46 raise NotImplementedError