Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
senf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wiback
senf
Commits
c6f97368
Commit
c6f97368
authored
16 years ago
by
tho
Browse files
Options
Downloads
Patches
Plain Diff
replaced some tabs with spaces
parent
4e761779
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Packets/80211Bundle/RadiotapPacket.test.cc
+1
-1
1 addition, 1 deletion
Packets/80211Bundle/RadiotapPacket.test.cc
Socket/Protocols/DVB/DVBConfigParser.hh
+28
-26
28 additions, 26 deletions
Socket/Protocols/DVB/DVBConfigParser.hh
with
29 additions
and
27 deletions
Packets/80211Bundle/RadiotapPacket.test.cc
+
1
−
1
View file @
c6f97368
...
@@ -34,7 +34,7 @@ BOOST_AUTO_UNIT_TEST(RadiotapPacket_packet)
...
@@ -34,7 +34,7 @@ BOOST_AUTO_UNIT_TEST(RadiotapPacket_packet)
/* used madwifi 0.9.4 */
/* used madwifi 0.9.4 */
unsigned
char
data
[]
=
{
unsigned
char
data
[]
=
{
0x00
,
0x00
,
0x1a
,
0x00
,
0x6f
,
0x18
,
0x00
,
0x00
,
0x00
,
0x00
,
0x1a
,
0x00
,
0x6f
,
0x18
,
0x00
,
0x00
,
0x02
,
0xe6
,
0x8a
,
0xdf
,
0x12
,
0x00
,
0x00
,
0x00
,
0x02
,
0xe6
,
0x8a
,
0xdf
,
0x12
,
0x00
,
0x00
,
0x00
,
0x12
,
0x0c
,
0xc8
,
0x14
,
0x40
,
0x01
,
0xc3
,
0xa0
,
0x12
,
0x0c
,
0xc8
,
0x14
,
0x40
,
0x01
,
0xc3
,
0xa0
,
0x02
,
0x23
0x02
,
0x23
};
};
...
...
This diff is collapsed.
Click to expand it.
Socket/Protocols/DVB/DVBConfigParser.hh
+
28
−
26
View file @
c6f97368
// $Id
: DVBConfigParser.hh 965 2008-11-18 16:04:20Z g0dil
$
// $Id$
//
//
// Copyright (C) 2007
// Copyright (C) 2007
// Fraunhofer Institute for Open Communication Systems (FOKUS)
// Fraunhofer Institute for Open Communication Systems (FOKUS)
...
@@ -23,8 +23,8 @@
...
@@ -23,8 +23,8 @@
/** \file
/** \file
\brief DVBDemuxHandles public header */
\brief DVBDemuxHandles public header */
#ifndef
DVBCONFIGPARSER_HH
_
#ifndef
HH_SENF_Socket_Protocols_DVB_DVBConfigParser
_
#define
DVBCONFIGPARSER_HH_
#define
HH_SENF_Socket_Protocols_DVB_DVBConfigParser_ 1
#include
<string>
#include
<string>
#include
<vector>
#include
<vector>
...
@@ -34,10 +34,12 @@
...
@@ -34,10 +34,12 @@
#include
<fstream>
#include
<fstream>
#include
<boost/tokenizer.hpp>
#include
<boost/tokenizer.hpp>
#include
<linux/dvb/frontend.h>
#include
<linux/dvb/frontend.h>
namespace
senf
{
namespace
senf
{
class
DVBConfigParser
{
class
DVBConfigParser
struct
DVBParams
{
{
struct
DVBParams
{
std
::
map
<
std
::
string
,
fe_spectral_inversion_t
>
inversion
;
std
::
map
<
std
::
string
,
fe_spectral_inversion_t
>
inversion
;
std
::
map
<
std
::
string
,
fe_bandwidth_t
>
bandwidth
;
std
::
map
<
std
::
string
,
fe_bandwidth_t
>
bandwidth
;
std
::
map
<
std
::
string
,
fe_code_rate_t
>
code_rate
;
std
::
map
<
std
::
string
,
fe_code_rate_t
>
code_rate
;
...
@@ -45,29 +47,29 @@ class DVBConfigParser
...
@@ -45,29 +47,29 @@ class DVBConfigParser
std
::
map
<
std
::
string
,
fe_hierarchy_t
>
hierarchy
;
std
::
map
<
std
::
string
,
fe_hierarchy_t
>
hierarchy
;
std
::
map
<
std
::
string
,
fe_modulation_t
>
modulation
;
std
::
map
<
std
::
string
,
fe_modulation_t
>
modulation
;
std
::
map
<
std
::
string
,
fe_transmit_mode_t
>
transmit_mode
;
std
::
map
<
std
::
string
,
fe_transmit_mode_t
>
transmit_mode
;
DVBParams
();
};
DVBParams
();
static
const
DVBParams
params
;
};
typedef
boost
::
tokenizer
<
boost
::
char_separator
<
char
>
>
tokenizer
;
static
const
DVBParams
params
;
typedef
boost
::
tokenizer
<
boost
::
char_separator
<
char
>
>
tokenizer
;
public
:
public
:
DVBConfigParser
(
fe_type_t
type_
,
const
std
::
string
&
configFilePath
=
""
);
DVBConfigParser
(
fe_type_t
type_
,
const
std
::
string
&
configFilePath
=
""
);
~
DVBConfigParser
();
~
DVBConfigParser
();
std
::
string
getConfigLine
(
std
::
string
channel
);
std
::
string
getConfigLine
(
std
::
string
channel
);
dvb_frontend_parameters
getFrontendParam
(
std
::
string
configLine
);
dvb_frontend_parameters
getFrontendParam
(
std
::
string
configLine
);
private
:
fe_type_t
type
;
private
:
std
::
ifstream
configFile
;
fe_type_t
type
;
void
initConfigFile
(
std
::
string
_configFilePath
);
std
::
ifstream
configFile
;
void
initConfigFile
(
std
::
string
_configFilePath
);
dvb_frontend_parameters
getFrontendParamDVB_T
(
const
tokenizer
&
tokens
);
dvb_frontend_parameters
getFrontendParamDVB_C
(
const
tokenizer
&
tokens
);
dvb_frontend_parameters
getFrontendParamDVB_T
(
const
tokenizer
&
tokens
);
dvb_frontend_parameters
getFrontendParamDVB_S
(
const
tokenizer
&
tokens
);
dvb_frontend_parameters
getFrontendParamDVB_C
(
const
tokenizer
&
tokens
);
dvb_frontend_parameters
getFrontendParamDVB_S
(
const
tokenizer
&
tokens
);
};
};
}
}
#endif
/*DVBCONFIGPARSER_H_*/
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment