SAS/StudentDAO.h

67 lines
1.6 KiB
C
Raw Normal View History

/*
*
*/
2022-07-03 18:22:02 +08:00
#ifndef STUDENT_DAO_H
#define STUDENT_DAO_H
#import "c:\\Program Files\\Common Files\\System\\ado\\msado15.dll" no_namespace rename("EOF", "EndOfFile")
#include<iostream>
#include<vector>
#include"Student.h"
2022-07-03 18:22:02 +08:00
/*
*
* @param connection
* @param student
*/
2022-07-03 18:22:02 +08:00
void addStudent(_ConnectionPtr connection, Student student);
/*
*
* @param connection
* @param id
*/
2022-07-03 18:22:02 +08:00
void deleteStudent(_ConnectionPtr connection, string id);
/*
*
* @param connection
* @param id
* @param stuClass
*/
2022-07-03 18:22:02 +08:00
void updateStudentClass(_ConnectionPtr connection, string id, string stuClass);
/*
*
* @param connection
* @param id
* @param status 退
*/
2022-07-03 18:22:02 +08:00
void updateStudentStatus(_ConnectionPtr connection, string id, string status);
/*
*
* @param connection
* @param id
* @return Student* student对象指针
*/
2022-07-04 00:31:52 +08:00
Student* getStudentById(_ConnectionPtr connection, string id);
/*
*
* @param connection
* @param name
* @return vector<Student>* Student对象为元素的vector数组指针
*/
2022-07-04 00:31:52 +08:00
std::vector<Student>* getStudentByName(_ConnectionPtr connection, string name);
/*
*
* @param connection
* @return vector<Student>* Student对象为元素的vector数组指针
*/
2022-07-04 00:31:52 +08:00
std::vector<Student>* getAllStudent(_ConnectionPtr connection);
2022-07-03 18:22:02 +08:00
#endif // !STUDENT_DAO_H