// File: /workspace/github_cpp_makefile_star2_O2/errantlinguist[P]Forecast/src/forecast_io/parsers/NotifyingForecastParser.cpp
// Function: forecast_io::parsers::NotifyingForecastParser::parseAttribute(forecast_io::parsers::ForecastAttribute const&, json_object* const&)
void NotifyingForecastParser::parseAttribute(const ForecastAttribute& attribute,
		json_object* const & pValue)
{
	switch (attribute)
	{
	case ForecastAttribute::ALERTS:
	{
		alertsParser.parse(pValue);
		break;
	}
	case ForecastAttribute::CURRENTLY:
	{
		synchronicDataPointParser.parse(pValue);
		break;
	}
	case ForecastAttribute::DAILY:
	{
		// TODO: Implement parsing of "daily" data points
		break;
	}
	case ForecastAttribute::FLAGS:
	{
		flagParser.parse(pValue);
		break;
	}
	case ForecastAttribute::HOURLY:
	{
		// TODO: Implement parsing of "hourly" data points
		break;
	}
	case ForecastAttribute::LATITUDE:
	{
		const double latitude(json_object_get_double(pValue));
		for (listeners::ForecastDetailsListener* const & pListener : getListeners())
		{
			pListener->notifyLatitude(latitude);
		}
		break;
	}
	case ForecastAttribute::LONGITUDE:
	{
		const double longitude(json_object_get_double(pValue));
		for (listeners::ForecastDetailsListener* const & pListener : getListeners())
		{
			pListener->notifyLongitude(longitude);
		}
		break;
	}
	case ForecastAttribute::MINUTELY:
	{
		// TODO: Implement parsing of "minutely" data points
		break;
	}
	case ForecastAttribute::OFFSET:
	{
		const signed char offset(
				static_cast<signed char>(json_object_get_int64(pValue)));
		for (listeners::ForecastDetailsListener* const & pListener : getListeners())
		{
			pListener->notifyOffset(offset);
		}
		break;
	}
	case ForecastAttribute::TIMEZONE:
	{
		const std::string timezone(json_object_get_string(pValue));
		for (listeners::ForecastDetailsListener* const & pListener : getListeners())
		{
			pListener->notifyTimezone(timezone);
		}
		break;
	}
	default:
	{
		throw std::logic_error(
				createUndefinedAttributeErrorMessage(ForecastAttribute_NAME,
						attribute));
		break;
	}
	}
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movl (%rsi), %eax
cmpq $0x9, %rax
ja 0x1ee89
movq %rdi, %rbx
leaq 0x5552(%rip), %rcx      # 0x242e0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x50(%rbx), %rdi
jmp 0x1ede5
movq 0x58(%rbx), %rdi
jmp 0x1ede5
movq (%rdx), %rdi
callq 0x96b0
leaq 0x10(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %rax, %rsi
callq 0xb070
addq $0x28, %rbx
leaq 0x10(%rsp), %r14
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x1ee76
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x20(%rax)
jmp 0x1edc6
movq 0x60(%rbx), %rdi
movq (%rdi), %rax
movq 0x18(%rax), %rax
movq %rdx, %rsi
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
jmpq *%rax
movq (%rdx), %rdi
callq 0x9430
movsd %xmm0, 0x8(%rsp)
addq $0x28, %rbx
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x1ee80
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
movsd 0x8(%rsp), %xmm0
callq *0x18(%rax)
jmp 0x1ee0b
movq (%rdx), %rdi
callq 0x9430
movsd %xmm0, 0x8(%rsp)
addq $0x28, %rbx
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x1ee80
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
movsd 0x8(%rsp), %xmm0
callq *0x10(%rax)
jmp 0x1ee37
movq (%rdx), %rdi
callq 0x9450
addq $0x28, %rbx
movsbl %al, %ebp
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x1ee80
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
movl %ebp, %esi
callq *0x28(%rax)
jmp 0x1ee60
leaq 0x10(%rsp), %rdi
callq 0x9710
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rsi, %r14
pushq $0x10
popq %rdi
callq 0x91e0
movq %rax, %rbx
leaq 0x1b032(%rip), %rsi     # 0x39ed0
leaq 0x10(%rsp), %rdi
movq %r14, %rdx
callq 0x1ef80
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x90d0
xorl %ebp, %ebp
movq 0x1a124(%rip), %rsi     # 0x38fe8
movq 0x1a0fd(%rip), %rdx     # 0x38fc8
movq %rbx, %rdi
callq 0x9390
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x9710
testb %bpl, %bpl
jne 0x1eeea
jmp 0x1ef06
movq %rax, %r14
movq %rbx, %rdi
callq 0x9530
jmp 0x1ef06
movq %rax, %r14
jmp 0x1ef06
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x9710
movq %r14, %rdi
callq 0x93b0