OSDN Git Service

スタブ修正
authoryamada <yamada@1ed66053-1c2d-0410-8867-f7571e6e31d3>
Tue, 15 Dec 2009 11:34:43 +0000 (11:34 +0000)
committeryamada <yamada@1ed66053-1c2d-0410-8867-f7571e6e31d3>
Tue, 15 Dec 2009 11:34:43 +0000 (11:34 +0000)
git-svn-id: http://10.144.169.20/repos/um/branches/l7vsd-3.x-ramiel@9157 1ed66053-1c2d-0410-8867-f7571e6e31d3

l7vsd/unit_tests/l7vsd_test/parameter_stub.h

index 72601d6..d452ddb 100644 (file)
@@ -86,10 +86,38 @@ public:
     //! @param[in]    component tag
     //! @param[in]    keystring
     //! @param[out]   errorcode
+    //! @param[in]    file name
     //! @return int value
     int get_int( const PARAMETER_COMPONENT_TAG,
                  const std::string&,
-                 error_code& );
+                 error_code&,
+                 const std::string& );
+
+    //! string value getter
+    //! @param[in]    component tag
+    //! @param[in]    keystring
+    //! @param[out]   errorcode
+    //! @param[in]    file name
+    //! @return string value
+    std::string get_string( const PARAMETER_COMPONENT_TAG,
+                            const std::string&,
+                            error_code&,
+                            const std::string& );
+
+    //! multistring value getter
+    //! @param[in]    component tag
+    //! @param[in]    keystring
+    //! @param[inout] string vector
+    //! @param[out]   errorcode
+    //! @param[in]    file name
+    //! @return       void
+    void get_multistring( const PARAMETER_COMPONENT_TAG,
+                          const std::string&,
+                          std::vector<std::string>&,
+                          error_code&,
+                          const std::string& );
+
+
 
     void set_int( const l7vs::PARAMETER_COMPONENT_TAG comp,
                                   const std::string& key,
@@ -108,7 +136,7 @@ public:
             add_para.first = str_key;
             add_para.second = set_value;
             intMap.insert(add_para);
-//            std::cout << "Parameter set Error" << std::endl;
+
         }
     };
 
@@ -124,26 +152,6 @@ public:
             intMap.erase(section_table_iterator->second + "." + key);
         }
     };
-
-    //! string value getter
-    //! @param[in]    component tag
-    //! @param[in]    keystring
-    //! @param[out]   errorcode
-    //! @return string value
-    std::string get_string( const PARAMETER_COMPONENT_TAG,
-                            const std::string&,
-                            error_code& );
-
-    //! multistring value getter
-    //! @param[in]    component tag
-    //! @param[in]    keystring
-    //! @param[inout] string vector
-    //! @param[out]   errorcode
-    //! @return       void
-    void get_multistring( const PARAMETER_COMPONENT_TAG,
-                          const std::string&,
-                          std::vector<std::string>&,
-                          error_code& );
 };
 
 }
@@ -216,30 +224,42 @@ public:
     //! @param[in]    parametercategory
     //! @param[in]    parameter key
     //! @param[out]   error code
+    //! @param[in]    configuration filename
+    //!                   default:PARAMETER_FILE
     //! @return int value
     int get_int(const PARAMETER_COMPONENT_TAG,
                 const std::string&,
-                error_code& );
+                error_code&,
+                const std::string& = PARAMETER_FILE );
 
     //! parameter string value getter
     //! @param[in]    parametercategory
     //! @param[in]    parameter key
     //! @param[out]   error code
+    //! @param[in]    configuration filename
+    //!                   default:PARAMETER_FILE
     //! @return string value
     std::string get_string(const PARAMETER_COMPONENT_TAG,
                            const std::string&,
-                           error_code& );
+                           error_code&,
+                           const std::string& = PARAMETER_FILE );
 
     //! parameter multistring value getter
     //! @param[in]    parametercategory
     //! @param[in]    parameter key
     //! @param[inout] string vector
     //! @param[out]   error code
+    //! @param[in]    configuration filename
+    //!                   default:PARAMETER_FILE
     //! @return string value
     void get_multistring(const PARAMETER_COMPONENT_TAG,
                          const std::string&,
                          std::vector<std::string>&,
-                         error_code& );
+                         error_code&,
+                         const std::string& = PARAMETER_FILE );
+
+
+
 
     void set_int( const l7vs::PARAMETER_COMPONENT_TAG comp,
                                   const std::string& key,
@@ -255,6 +275,8 @@ public:
         ParameterImpl& impl = ParameterImpl::get_instance();
         impl.rm_int_parameter( comp, key, err );
     };
+
+
 };
 
 } //namespace l7vs