Exam Scheduler Technical Manual


Input Module

Input Module's main task:

In this scheduler project, the input module is in charge of the following tasks:

Input Module's main functions:
 Input Parameters
Parameter Description Type
section The Section Name String
item The Item Name String
info The String to contain the result String
error The String to contain the error info String

Return Value

1 : The specified section and item exist and info contains content;
0 : The specified section and item exist but info is NULL;
-1: The specified section or  item does not exist; 
-2: The configured file does not exist or can not be opened correctly.
Input Parameters
Parameter Description Type
courseFilePath The Path Name String
courseFileName The File Name String
error The String to contain the error info String

Return Value

1: the array has been filled correctly.
0: error.
Input Parameters
Parameter Description Type
studentFilePath The Path Name String
studentFileName The File Name String
error The String to contain the error info String

Return Value

1: the array has been filled correctly.
0: error.
Input Parameters
Parameter Description Type
facultyFilePath The Path Name String
facultyFileName The File Name String
error The String to contain the error info String

Return Value

1: the array has been filled correctly.
0: error.
Input Parameters
Parameter Description Type
error The String to contain the error info String

Return Value

1: the array has been filled correctly.
0: error.
Input Parameters
Parameter Description Type
error The String to contain the error info String

Return Value

1: the array has been filled correctly.
0: error.

Input Module's accessory functions:
 

Input Parameters
Parameter Description Type
buffer The buffer Name String
delimit The delimiting characters String
first The order number of this level Int
first_return The String to contain the token String

Return Value

1 : first_return contains the correct value;
-1: Error.
Input Parameters
Parameter Description Type
buffer The buffer Name String
first_delimit The first level delimiting characters String
first The order number of the first  level Int
second_delimit The second level delimiting characters String
second The order number of the second level. Int
second_return The String to contain the token String

.
Return Value

1 : first_return contains the correct value;
-1: Error.
Input Parameters
Parameter Description Type
buffer The buffer Name String
first_delimit The first level delimiting characters String
first The order number of the first  level Int
second_delimit The second level delimiting characters String
second The order number of the second level. Int
Third_delimit The third level of delimiting characters String
third The order number of the third levle Int
third_return The String to contain the token String

.
Return Value

1 : first_return contains the correct value;
-1: Error.
Input Parameters
Parameter Description Type
string The Source String String

Return Value

No return.
Input Parameters
Parameter Description Type
courseNumber The String which contains the course number String
error The String to contain the error info String

Return Value

>=0: it returns the correct course index.
< 0: error.


Updated on April 18, 2000.