This repository has been archived by the owner on Feb 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from dium-li3/queries-cleanup
Queries cleanup (again)
- Loading branch information
Showing
51 changed files
with
1,772 additions
and
1,644 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,46 @@ | ||
/* | ||
* Copyright 2023 Humberto Gomes, José Lopes, José Matos | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
* Copyright 2023 Humberto Gomes, José Lopes, José Matos | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
/** | ||
* @file q04.h | ||
* @brief List hotel reservations, ordered by start date (from most recent to oldest). | ||
* @details If two reservations have the same date, the reservation identifier must | ||
* be used as a tiebreaker (in ascending order). | ||
* | ||
* ### Examples | ||
* | ||
* ```text | ||
* 4 HTL1001 | ||
* 4 HTL1002 | ||
* 4 HTL1003 | ||
* 4F HTL1001 | ||
* 4F HTL1002 | ||
* 4F HTL1003 | ||
* ``` | ||
*/ | ||
* @file q04.h | ||
* @brief List all reservations of a given hotel. | ||
* | ||
* ### Examples | ||
* | ||
* ```text | ||
* 4 HTL1001 | ||
* 4 HTL1002 | ||
* 4 HTL1003 | ||
* 4F HTL1001 | ||
* 4F HTL1002 | ||
* 4F HTL1003 | ||
* ``` | ||
*/ | ||
|
||
#ifndef Q04_H | ||
#define Q04_H | ||
|
||
#include "queries/query_type.h" | ||
|
||
/** | ||
* @brief Initializes the definition of the fourth query. | ||
* @details This is done automatically in ::query_type_list_create. | ||
* @return A pointer to a `malloc`-allocated ::query_type_t on success, or `NULL` on failure. | ||
*/ | ||
* @brief Initializes the definition of queries of type 4. | ||
* @details This is done automatically in [query_type_list](@ref query_type_list.c). | ||
* @return On success, a pointer to a ::query_type_t that must be deleted with ::query_type_free, | ||
* or `NULL` allocation on failure. | ||
*/ | ||
query_type_t *q04_create(void); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,46 @@ | ||
/* | ||
* Copyright 2023 Humberto Gomes, José Lopes, José Matos | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
* Copyright 2023 Humberto Gomes, José Lopes, José Matos | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
/** | ||
* @file q06.h | ||
* @brief List the top N airports with the most passengers, for a given year. Flights with an | ||
* estimated departure date in that year must be counted. | ||
* @details If two airports have the same value, the name of the airport must be used as a | ||
* tiebreaker (in ascending order). | ||
* | ||
* ### Examples | ||
* | ||
* ```text | ||
* 6 2023 10 | ||
* 6 2022 10 | ||
* 6 2021 10 | ||
* 6F 2023 10 | ||
* 6F 2022 10 | ||
* 6F 2021 10 | ||
* ``` | ||
*/ | ||
* @file q06.h | ||
* @brief List the top N airports with the most passengers, for a given year. | ||
* | ||
* ### Examples | ||
* | ||
* ```text | ||
* 6 2023 10 | ||
* 6 2022 10 | ||
* 6 2021 10 | ||
* 6F 2023 10 | ||
* 6F 2022 10 | ||
* 6F 2021 10 | ||
* ``` | ||
*/ | ||
|
||
#ifndef Q06_H | ||
#define Q06_H | ||
|
||
#include "queries/query_type.h" | ||
|
||
/** | ||
* @brief Initializes the definition of the sixth query. | ||
* @details This is done automatically in ::query_type_list_create. | ||
* @return A pointer to a `malloc`-allocated ::query_type_t on success, or `NULL` on failure. | ||
*/ | ||
* @brief Initializes the definition of queries of type 6. | ||
* @details This is done automatically in [query_type_list](@ref query_type_list.c). | ||
* @return On success, a pointer to a ::query_type_t that must be deleted with ::query_type_free, | ||
* or `NULL` allocation on failure. | ||
*/ | ||
query_type_t *q06_create(void); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,44 @@ | ||
/* | ||
* Copyright 2023 Humberto Gomes, José Lopes, José Matos | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
* Copyright 2023 Humberto Gomes, José Lopes, José Matos | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
/** | ||
* @file q07.h | ||
* @brief A query to that lists the top N airports by median of departure delays. | ||
* @details | ||
* | ||
* ### Examples | ||
* | ||
* ```text | ||
* 7 10 | ||
* 7 20 | ||
* 7F 10 | ||
* 7F 20 | ||
* ``` | ||
*/ | ||
* @file q07.h | ||
* @brief A query to that lists the top N airports by median of departure delays. | ||
* | ||
* ### Examples | ||
* | ||
* ```text | ||
* 7 10 | ||
* 7 20 | ||
* 7F 10 | ||
* 7F 20 | ||
* ``` | ||
*/ | ||
|
||
#ifndef Q07_H | ||
#define Q07_H | ||
|
||
#include "queries/query_type.h" | ||
|
||
/** | ||
* @brief Initializes the definition of the seventh query. | ||
* @details This is done automatically in ::query_type_list_create. | ||
* @return A pointer to a `malloc`-allocated ::query_type_t on success, or `NULL` on failure. | ||
*/ | ||
* @brief Initializes the definition of queries of type 7. | ||
* @details This is done automatically in [query_type_list](@ref query_type_list.c). | ||
* @return On success, a pointer to a ::query_type_t that must be deleted with ::query_type_free, | ||
* or `NULL` allocation on failure. | ||
*/ | ||
query_type_t *q07_create(void); | ||
|
||
#endif |
Oops, something went wrong.