DtvKit_ATSC3.0
Loading...
Searching...
No Matches
src
atsc
core
src
atsc3
signaling
atsc_core_atsc3_signaling_mime.h
Go to the documentation of this file.
1
/*******************************************************************************
2
* Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3
*
4
* This file is part of a DTVKit Software Component
5
* You are permitted to copy, modify or distribute this file subject to the terms
6
* of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
7
*
8
* THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
9
* EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
10
* OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
11
*
12
* If you or your organisation is not a member of DTVKit then you have access
13
* to this source code outside of the terms of the licence agreement
14
* and you are expected to delete this and any associated files immediately.
15
* Further information on DTVKit, membership and terms can be found at www.dtvkit.org
16
*******************************************************************************/
17
18
#pragma once
19
#ifndef ATSC_CORE_ATSC3_SIGNALLING_MIME_H
20
#define ATSC_CORE_ATSC3_SIGNALLING_MIME_H
21
22
#include <string.h>
23
#include <map>
24
#include <list>
25
#include <vector>
26
#include <unistd.h>
27
#include <sys/stat.h>
28
29
#include "
atsc_core_atsc3_signaling.h
"
30
38
namespace
mime
{
39
43
typedef
struct
{
44
std::string
sContentType
;
45
std::string
sBoundary
;
46
}
stMultipartHeader_t
;
47
51
typedef
struct
{
52
std::string
sContentType
;
53
std::string
sContentLocation
;
54
std::string
sContentTransferEncoding
;
55
int32_t
iContentLength
;
56
}
stMimeHeader_t
;
57
64
std::pair<std::string,std::string>FindContentType(std::string sUri,
sMetadataEnvelope_t
sEnvelope);
65
72
std::map<std::string, stMimeHeader_t> MultipartRelatedNew(
char
* pBaseurl,
char
* pPath,
char
*pContextId);
73
80
bool
DoMkdir(
const
char
*pRootDirectory,
const
char
* pDirectory);
81
88
std::vector<std::string> split(
const
std::string& s,
char
* pSeperator);
89
90
static
std::map<std::string, std::string>mMimeMap;
98
std::map<std::string, stMimeHeader_t> SavePackagedFiles(
const
char
*pRoot, FILE* pFile, std::map<uint32_t, uint32_t>iPositions);
99
}
100
#endif
//ATSC_CORE_ATSC3_SIGNALLING_MIME_H
atsc_core_atsc3_signaling.h
mime
Definition
atsc_core_atsc3_signaling_mime.h:38
MetadataEnvelope_s
Definition
atsc_core_atsc3_signaling_types.h:647
mime::stMimeHeader_t
Definition
atsc_core_atsc3_signaling_mime.h:51
mime::stMimeHeader_t::sContentType
std::string sContentType
Definition
atsc_core_atsc3_signaling_mime.h:52
mime::stMimeHeader_t::sContentTransferEncoding
std::string sContentTransferEncoding
Definition
atsc_core_atsc3_signaling_mime.h:54
mime::stMimeHeader_t::sContentLocation
std::string sContentLocation
Definition
atsc_core_atsc3_signaling_mime.h:53
mime::stMimeHeader_t::iContentLength
int32_t iContentLength
Definition
atsc_core_atsc3_signaling_mime.h:55
mime::stMultipartHeader_t
Definition
atsc_core_atsc3_signaling_mime.h:43
mime::stMultipartHeader_t::sBoundary
std::string sBoundary
Definition
atsc_core_atsc3_signaling_mime.h:45
mime::stMultipartHeader_t::sContentType
std::string sContentType
Definition
atsc_core_atsc3_signaling_mime.h:44
Generated by
1.10.0