-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSTRING.h
More file actions
41 lines (32 loc) · 923 Bytes
/
STRING.h
File metadata and controls
41 lines (32 loc) · 923 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef STRING_H
#define STRING_H
//#include <bits/stdc++.h>
#include <stdint.h>
#include <string>
#include <map>
#include <stdarg.h>
#include <pthread.h>
#include "VAR.h"
using namespace std;
class STRING : public VAR{
public:
STRING(string, string); // constructor
virtual string get_val_str(); // getting value of string
virtual char get_val_of(int); // getting value of char
virtual void SET_STR_CHAR(int,char);
virtual operator string() const;
//void SET_STR_CHAR(int,STRING);
//void GET_STR_CHAR(int,STRING);
virtual void set_val(string);
virtual void ASSGN(string);
virtual VAR * clone();
virtual ~STRING();
protected:
private:
string val;
string name;
int lock = 0;
pthread_mutex_t mutex;
pthread_cond_t lockCondition;
};
#endif // STRING_H