conf 파일 파싱 후 Config 객체에 저장
Closed this issue · 0 comments
Jiwon-Woo commented
Description
conf 파일을 파싱하고 config 정보를 알맞은 곳에 저장합니다.
conf 파일은 크게main_directive
,event_directive
,http_directive
로 나뉩니다.http_directive
는 여러개의server_directive
를,server_directive
는 여러개의location_directive
를 포함하고 있습니다.
To Do
- location 블록들의 정보를 저장할 수 있는
ConfigLocation
클래스를 작성합니다. - server 블록들의 정보를 저장할
ConfigSever
클래스를 작성합니다.location_directive
를 멤버변수로 가집니다.-
location_directive
의 자료형은vector<ConfigLocation>
-
- http 블록의 정보를 담아둘 ConfigHttp 클래스를 작성합니다.
simple_directive
를 멤버변수로 가집니다.-
location_directive
의 자료형은vector<ConfigSever>
-
-
main_directive
,event_directive
,http_directive
를 멤버변수로 가지는 Config 클래스를 작성합니다.-
main_directive
,event_directive
은 map으로,http_directive
은ConfigHttp
으로 구현합니다.
-