removed some tabs
tho [Mon, 19 Jan 2009 13:19:58 +0000 (13:19 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1064 270642c3-0616-0410-b53a-bc976706d245

Packets/80221Bundle/MIHPacket.cc
Packets/DefaultBundle/RTPPacket.hh
Socket/Protocols/DVB/DVBConfigParser.hh
Socket/Protocols/DVB/DVBSocketController.hh
Utils/Termlib/Terminfo.cc

index 6c167f8..d762b15 100644 (file)
@@ -110,11 +110,13 @@ prefix_ void senf::MIHPacketType::dump(packet p, std::ostream &os)
        << "    Transaction ID:  " << unsigned( p->transactionId()) << "\n"
        << "    payload length:  " << unsigned( p->payloadLength()) << "\n"
        << "  source MIHF_Id TLV:\n"
+       << "    type:            " << unsigned (p->src_mihfId().type()) << "\n"
        << "    length:          " << unsigned (p->src_mihfId().length()) << "\n"
        << "    value:\n";
     std::string src_mihfId (p->src_mihfId().asString());
     hexdump(src_mihfId.begin(), src_mihfId.end(), os);
     os << "  destination MIHF_Id TLV:\n"
+       << "    type:            " << unsigned (p->dst_mihfId().type()) << "\n"
        << "    length:          " << unsigned (p->dst_mihfId().length()) << "\n"
        << "    value:\n";
     std::string dst_mihfId (p->dst_mihfId().asString());
index 62a1f48..c65360e 100644 (file)
@@ -35,7 +35,7 @@ namespace senf {
     
     struct RTPPacketParser : public senf::PacketParserBase
     {
-       SENF_LOG_CLASS_AREA();
+        SENF_LOG_CLASS_AREA();
 #       include SENF_PARSER()
         SENF_PARSER_BITFIELD  ( version,        2, unsigned     );      //Version (RFC 3550)
         SENF_PARSER_BITFIELD  ( padding,        1, bool         );      //1 if padding behind payload
@@ -54,9 +54,9 @@ namespace senf {
     
     struct RTPPacketType 
         : public senf::PacketTypeBase,
-        public senf::PacketTypeMixin<RTPPacketType>
+          public senf::PacketTypeMixin<RTPPacketType>
     {
-       SENF_LOG_CLASS_AREA();
+        SENF_LOG_CLASS_AREA();
         typedef senf::PacketTypeMixin<RTPPacketType> mixin;
         typedef senf::ConcretePacket<RTPPacketType> packet;
         typedef RTPPacketParser parser;
index bdd3d92..4b03ea1 100644 (file)
@@ -55,11 +55,11 @@ namespace senf {
     public:
         DVBConfigParser(fe_type_t type_, const std::string & configFilePath = "");
         ~DVBConfigParser();
-       
+
         std::string getConfigLine(std::string channel);
-           
+    
         dvb_frontend_parameters getFrontendParam(std::string configLine);
-       
+
     private:
         fe_type_t type;
         std::string configFilePath;
@@ -69,7 +69,7 @@ namespace senf {
         dvb_frontend_parameters getFrontendParamDVB_T( const tokenizer & tokens);
         dvb_frontend_parameters getFrontendParamDVB_C( const tokenizer & tokens);
         dvb_frontend_parameters getFrontendParamDVB_S( const tokenizer & tokens);
-       
+
     };
 }
 
index 26ecd6b..31a031a 100644 (file)
@@ -57,53 +57,53 @@ public:
                                                                                  /**< Callback which is called when an asynchronous tuning succeeds.*/
         
     DVBSocketController(DVBFrontendHandle frontendHandle_ = DVBFrontendHandle(0,0), DVBDemuxSectionHandle sectionHandle_ = DVBDemuxSectionHandle(0,0), const Callback & cb = NULL);
-       ~DVBSocketController();
-       
-       void tuneToCMD( const std::string & input, const std::string & mode = "async");///< Tunes a DVB device given by the type of the DVBFrontendHandle
+    ~DVBSocketController();
+
+    void tuneToCMD( const std::string & input, const std::string & mode = "async");///< Tunes a DVB device given by the type of the DVBFrontendHandle
                                                                                     /**< Tunes a DVB device by a channel name or complete configuration line. This method was created for use in Senf-Console.
                                                                                     \param[in] input A channel name or a complete configuration line. If a channel name is given it would be searched in the config file.
-                                                                                       \param[in] mode The mode in which it will tune "sync" or "async"*/
-       void tuneTo(const std::string & channel);  
-                                                   ///< Tunes a DVB device to a channel 
+                                                                                    \param[in] mode The mode in which it will tune "sync" or "async"*/
+    void tuneTo(const std::string & channel); 
+                                                ///< Tunes a DVB device to a channel 
                                                 /**< Tunes a DVB device to a channel whose parameters are stored in a configfile. The method determines the type of DVB device by it self.
                                                      \param[in] channel A channel name which will be looked up in config file.*/
-       
-       void tuneDVB_S(unsigned int frequency, fe_spectral_inversion_t inversion, unsigned int symbole_rate, fe_code_rate_t code_rate);
-                                                                                       ///< Tunes a DVB-S device
-                                                                                       /**< Tunes a DVB-S device in asynchronous mode and calls the callback if existing. Needs full configuration */
-       void tuneDVB_T(unsigned int frequency,
-                       fe_spectral_inversion_t inversion, fe_bandwidth_t bandwidth,
-                       fe_code_rate_t code_rate_HP, /* high priority stream code rate */
-                       fe_code_rate_t code_rate_LP, /* low priority stream code rate */
-                       fe_modulation_t constellation, /* modulation type (see above) */
-                       fe_transmit_mode_t transmission_mode,
-                       fe_guard_interval_t guard_interval,
-                       fe_hierarchy_t hierarchy_information);                          ///< Tunes a DVB-T device
-                                                                                       /**< Tunes a DVB-T device in asynchronous mode and calls the callback if existing. Needs full configuration. */
-       void tuneDVB_C(unsigned int frequency,
-                       fe_spectral_inversion_t inversion, unsigned int symbol_rate,
-                       fe_code_rate_t fec_inner, fe_modulation_t modulation); 
-                                                                                       ///< Tunes a DVB-C device
+
+    void tuneDVB_S(unsigned int frequency, fe_spectral_inversion_t inversion, unsigned int symbole_rate, fe_code_rate_t code_rate);
+                                                                                    ///< Tunes a DVB-S device
+                                                                                    /**< Tunes a DVB-S device in asynchronous mode and calls the callback if existing. Needs full configuration */
+    void tuneDVB_T(unsigned int frequency,
+                    fe_spectral_inversion_t inversion, fe_bandwidth_t bandwidth,
+                    fe_code_rate_t code_rate_HP, /* high priority stream code rate */
+                    fe_code_rate_t code_rate_LP, /* low priority stream code rate */
+                    fe_modulation_t constellation, /* modulation type (see above) */
+                    fe_transmit_mode_t transmission_mode,
+                    fe_guard_interval_t guard_interval,
+                    fe_hierarchy_t hierarchy_information);                          ///< Tunes a DVB-T device
+                                                                                    /**< Tunes a DVB-T device in asynchronous mode and calls the callback if existing. Needs full configuration. */
+    void tuneDVB_C(unsigned int frequency,
+                    fe_spectral_inversion_t inversion, unsigned int symbol_rate,
+                    fe_code_rate_t fec_inner, fe_modulation_t modulation); 
+                                                                                    ///< Tunes a DVB-C device
                                                                                     /**< Tunes a DVB-C device in asynchronous mode and calls the callback if existing. Needs full configuration. */
-       
-       dvb_frontend_event tuneTo_sync( const std::string & channel );
-                                                                       ///< Tunes a DVB device given by the type of the DVBFrontendHandle
+    
+    dvb_frontend_event tuneTo_sync( const std::string & channel );
+                                                                    ///< Tunes a DVB device given by the type of the DVBFrontendHandle
                                                                     /**< Tunes a DVB device, given by the type of the DVBFrontendHandle, by a channel name in synchronous mode
                                                                         \param[in] channel A channel name which will be looked up in config file.
-                                                                           \returns dvb_frontend_event  
+                                                                        \returns dvb_frontend_event  
                                                                         \note The member "dvb_frontend_event.status" should be correct by the 
-                                                                           most device driver implementations. But "dvb_frontend_event.parameters" maybe not and is definitly not set by:
-                                                                           Cinergy T² (2.6.27), Terratec Cinergy DT USB XS Diversity (2.6.27) 
-                                                                           */
-       
-       dvb_frontend_event tuneDVB_S_sync(unsigned int frequency, fe_spectral_inversion_t inversion, unsigned int symbole_rate, fe_code_rate_t code_rate);
+                                                                        most device driver implementations. But "dvb_frontend_event.parameters" maybe not and is definitly not set by:
+                                                                        Cinergy T� (2.6.27), Terratec Cinergy DT USB XS Diversity (2.6.27) 
+                                                                        */
+    
+    dvb_frontend_event tuneDVB_S_sync(unsigned int frequency, fe_spectral_inversion_t inversion, unsigned int symbole_rate, fe_code_rate_t code_rate);
                                                                                 ///< Tunes a DVB-S device
                                                                                 /**< Tunes a DVB-S device in synchronous mode. Needs full configuration
-                                                                                   \returns dvb_frontend_event  
-                                                                                   \note The member "dvb_frontend_event.status" should be correct by the 
-                                                                                    most device driver implementations. But "dvb_frontend_event.parameters" maybe not and is definitly not set by:
-                                                                                   Cinergy T² (2.6.27), Terratec Cinergy DT USB XS Diversity (2.6.27) 
-                                                                                   */
+                                                                                \returns dvb_frontend_event  
+                                                                                \note The member "dvb_frontend_event.status" should be correct by the 
+                                                                                 most device driver implementations. But "dvb_frontend_event.parameters" maybe not and is definitly not set by:
+                                                                                Cinergy T� (2.6.27), Terratec Cinergy DT USB XS Diversity (2.6.27) 
+                                                                                */
     dvb_frontend_event tuneDVB_T_sync(unsigned int frequency,
                 fe_spectral_inversion_t inversion, fe_bandwidth_t bandwidth,
                 fe_code_rate_t code_rate_HP, /* high priority stream code rate */
@@ -117,7 +117,7 @@ public:
                                                                                 \returns dvb_frontend_event  
                                                                                 \note The member "dvb_frontend_event.status" should be correct by the 
                                                                                 most device driver implementations. But "dvb_frontend_event.parameters" maybe not and is definitly not set by:
-                                                                                Cinergy T² (2.6.27), Terratec Cinergy DT USB XS Diversity (2.6.27) 
+                                                                                Cinergy T� (2.6.27), Terratec Cinergy DT USB XS Diversity (2.6.27) 
                                                                                 */
     dvb_frontend_event tuneDVB_C_sync(unsigned int frequency,
                 fe_spectral_inversion_t inversion, unsigned int symbol_rate,
@@ -127,7 +127,7 @@ public:
                                                                                 \returns dvb_frontend_event  
                                                                                 \note The member "dvb_frontend_event.status" should be correct by the 
                                                                                 most device driver implementations. But "dvb_frontend_event.parameters" maybe not and is definitly not set by:
-                                                                                Cinergy T² (2.6.27), Terratec Cinergy DT USB XS Diversity (2.6.27) 
+                                                                                Cinergy T� (2.6.27), Terratec Cinergy DT USB XS Diversity (2.6.27) 
                                                                                 */
     fe_type_t getType(); ///< Returns the type of the card. The type is defined in frontend.h
     
@@ -140,7 +140,7 @@ public:
     
     unsigned int bitErrorRate(); ///< Returns the bit error rate
                                  /**< Returns the bit error rate. 
-                                 \note This function may not be implemented by your specific driver implementation. In this case the output is random. This is true for: Cinergy T² (2.6.27), Terratec Cinergy DT USB XS Diversity (2.6.27)*/
+                                 \note This function may not be implemented by your specific driver implementation. In this case the output is random. This is true for: Cinergy T� (2.6.27), Terratec Cinergy DT USB XS Diversity (2.6.27)*/
     unsigned int signalToNoiseRatio();
                                     ///< Returns the signal to noise ratio
                                     /**< Returns the signal to noise ratio
index 603676c..44bdb6f 100644 (file)
@@ -240,15 +240,15 @@ prefix_ std::string senf::term::Terminfo::formatString(properties::String p,
     std::string result;
 
     for (std::string::const_iterator i (prgstr.begin()); i != prgstr.end(); ++i) {
-       if (*i != '%') {
-           result += *i;
-           continue;
-       }
-       int width = 0, base = 0;
-       switch (*++i) {
+    if (*i != '%') {
+        result += *i;
+        continue;
+    }
+    int width = 0, base = 0;
+    switch (*++i) {
         case '%': result += *i; break;
         case 'i': ++arg1; ++arg2; break;
-        case 'c': result += char(stack.pop()); break;
+        case 'c': result += char(stack.pop());  break;
         case 'x': base = 16; continue;
         case '0': if (!base) base = 8;
         case '1': case '2': case '3': case '4':
@@ -264,7 +264,7 @@ prefix_ std::string senf::term::Terminfo::formatString(properties::String p,
             continue;
         }
         case '}': stack.push(width); break;
-           // Binary operands are in infix (reversed) order
+        // Binary operands are in infix (reversed) order
         case '+': stack.push(stack.pop() + stack.pop()); break;
         case '-': stack.push(-stack.pop() + stack.pop()); break;
         case '*': stack.push(stack.pop() * stack.pop()); break;