replaced some tabs with spaces
tho [Thu, 18 Dec 2008 13:30:45 +0000 (13:30 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1024 270642c3-0616-0410-b53a-bc976706d245

Packets/80211Bundle/RadiotapPacket.test.cc
Socket/Protocols/DVB/DVBConfigParser.hh

index b94efc4..99aeb4a 100644 (file)
@@ -34,7 +34,7 @@ BOOST_AUTO_UNIT_TEST(RadiotapPacket_packet)
     /* used madwifi 0.9.4 */
     unsigned char data[] = {
             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,
             0x02, 0x23
     };
index 9a1f684..da2a91a 100644 (file)
@@ -1,4 +1,4 @@
-// $Id: DVBConfigParser.hh 965 2008-11-18 16:04:20Z g0dil $
+// $Id$
 //
 // Copyright (C) 2007
 // Fraunhofer Institute for Open Communication Systems (FOKUS)
@@ -23,8 +23,8 @@
 /** \file
     \brief DVBDemuxHandles public header */
 
-#ifndef DVBCONFIGPARSER_HH_
-#define DVBCONFIGPARSER_HH_
+#ifndef HH_SENF_Socket_Protocols_DVB_DVBConfigParser_
+#define HH_SENF_Socket_Protocols_DVB_DVBConfigParser_ 1
 
 #include <string>
 #include <vector>
 #include <fstream>
 #include <boost/tokenizer.hpp>
 #include <linux/dvb/frontend.h>
+
 namespace senf {
-class DVBConfigParser 
-{
-    struct DVBParams {
+
+    class DVBConfigParser 
+    {
+        struct DVBParams {
                 std::map<std::string, fe_spectral_inversion_t> inversion;
                 std::map<std::string, fe_bandwidth_t> bandwidth;
                 std::map<std::string, fe_code_rate_t> code_rate;
@@ -45,29 +47,29 @@ class DVBConfigParser
                 std::map<std::string, fe_hierarchy_t> hierarchy;
                 std::map<std::string, fe_modulation_t> modulation;
                 std::map<std::string, fe_transmit_mode_t> transmit_mode;
-                DVBParams(); };
-    static const DVBParams params;
-    typedef boost::tokenizer<boost::char_separator<char> > tokenizer;
+                DVBParams(); 
+        };
+        static const DVBParams params;
+        typedef boost::tokenizer<boost::char_separator<char> > tokenizer;
  
-
-public:
-       DVBConfigParser(fe_type_t type_, const std::string & configFilePath = "");
-       ~DVBConfigParser();
+    public:
+        DVBConfigParser(fe_type_t type_, const std::string & configFilePath = "");
+        ~DVBConfigParser();
        
-       std::string getConfigLine(std::string channel);
+        std::string getConfigLine(std::string channel);
            
-       dvb_frontend_parameters getFrontendParam(std::string configLine);
-       
-private:
+        dvb_frontend_parameters getFrontendParam(std::string configLine);
        
-       fe_type_t type;
-       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_S( const tokenizer & tokens);
+    private:
+        fe_type_t type;
+        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_S( const tokenizer & tokens);
        
-};
+    };
 }
-#endif /*DVBCONFIGPARSER_H_*/
+
+#endif