You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
723 B
41 lines
723 B
#ifndef FILE_H
|
|
#define FILE_H
|
|
#include <string>
|
|
#include <fstream>
|
|
#include <iostream>
|
|
#include <QList>
|
|
using namespace std;
|
|
struct Node;
|
|
|
|
class LinkedList
|
|
{
|
|
private:
|
|
QList<Node*> _linkedList;
|
|
QList<string> omitedLines;
|
|
|
|
Node* head;
|
|
void qListLinked(Node* newNode, int count);
|
|
|
|
void pushBack(string sender, string receiver, string command, float time, int count);
|
|
|
|
void qListOmit(string line);
|
|
|
|
void addToOmitList(int where);
|
|
|
|
void removeOmitLast();
|
|
|
|
void addTime(float time);
|
|
|
|
void makeLinkedList();
|
|
|
|
void chainDetector();
|
|
|
|
void fileOpen(const QString& path);
|
|
|
|
public:
|
|
QList<Node*> Initiate(const QString& path);
|
|
|
|
float convertTime(float input);
|
|
};
|
|
|
|
#endif //FILE_H
|
|
|