@@ -90,12 +90,6 @@ std::map<std::string, std::string> ServiceXHandler::parseYaml(std::string target
9090 std::ifstream myfile (fullDir);
9191 if (myfile.is_open ())
9292 {
93- // std::string fields;
94- // while ( getline (myfile,line) ){
95- // std::cout << line << '\n';
96- // fields << line << std::endl;
97- // }
98-
9993 std::string content;
10094 content.assign ( (std::istreambuf_iterator<char >(myfile) ),
10195 (std::istreambuf_iterator<char >() ) );
@@ -127,31 +121,13 @@ std::map<std::string, std::string> ServiceXHandler::parseYaml(std::string target
127121
128122 // TODO: Needs to search and verify that the nodes are there before they are referenced.
129123
130- // show_val(tree["sub"].child(0)[0]); // "foo: 1"
131- // show_val(subFirst[0]);
132- // show_keyval(api_endpointNode[0]);
133- // std::cout << "Number of children of endpoint: " << api_endpointNode.num_children() << std::endl;
134-
135- // show_val(typeNode[0]);
136- // show_val(tokenNode[0]);
137-
138124 show_keyval (endpointNode);
139- // show_keyval(tokenNode);
140- // show_keyval(typeNode);
141125
142126 std::string endpoint;
143127 std::string token;
144128 std::string mytype;
145129
146130 c4::from_chars (endpointNode.val (), &endpoint);
147- // c4::from_chars(tokenNode.val(), &token);
148- // c4::from_chars(typeNode.val(), &mytype);
149-
150- // std::cout << "Endpoint: " << endpoint << std::endl;
151- // std::cout << "Token: " << token << std::endl;
152- // std::cout << "Type: " << mytype << std::endl;
153-
154-
155131
156132 myfile.close ();
157133
@@ -170,6 +146,12 @@ std::map<std::string, std::string> ServiceXHandler::parseYaml(std::string target
170146 return properties;
171147}
172148
149+ /* *
150+ * @brief Deprecated. Fetched data from a hardcoded servicex endpoint.
151+ *
152+ * @param request_id
153+ * @return std::string
154+ */
173155std::string ServiceXHandler::FetchData (std::string request_id){
174156 // CURL *curl = curl_easy_init();
175157 // std::string request_id = "345974d4-d2ec-49bb-bef2-6683b7e461d5";
@@ -288,8 +270,8 @@ Json::Value ServiceXHandler::JsonFromStr(std::string jsonStr){
288270
289271
290272/* *
291- * @brief Gets MinIO bucket data and prints it. For now, uses a hard-coded bucket name and
292- * request_id
273+ * @brief Gets MinIO bucket data and prints it. Takes in a bucket name (request_id) and a pathkey
274+ * that specifies where the program will write the downloaded files to disk.
293275 *
294276 * @return A list of downloaded file names
295277 */
@@ -382,25 +364,8 @@ std::vector<std::string> ServiceXHandler::GetMinIOData(std::string bucketName, s
382364 return filenames;
383365}
384366
385-
386-
387- // bool ServiceXHandler::GetMd5(std::string &str_md5, const char * const buffer, size_t buffer_size){
388- // if (buffer == nullptr){
389- // return false;
390- // }
391- // boost::uuids::detail::md5 boost_md5;
392- // boost_md5.process_bytes(buffer, buffer_size);
393- // boost::uuids::detail::md5::digest_type digest;
394- // boost_md5.get_digest(digest);
395- // const auto char_digest = reinterpret_cast<const char*>(&digest);
396- // str_md5.clear();
397- // boost::algorithm::hex(char_digest,char_digest+sizeof(boost::uuids::detail::md5::digest_type), std::back_inserter(str_md5));
398- // return true;
399- // }
400-
401-
402367/* *
403- * @brief
368+ * @brief Stub
404369 *
405370 */
406371void HashSubmitJson (){}
0 commit comments