[dad864]: / src.h  Maximize  Restore  History

Download this file

33 lines (25 with data), 683 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
// src.h: interface for the Csrc class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_SRC_H__3CB9CB45_30FE_4026_A800_0588B9F07FA5__INCLUDED_)
#define AFX_SRC_H__3CB9CB45_30FE_4026_A800_0588B9F07FA5__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class Csrc
{
public:
Csrc();
virtual ~Csrc();
long *m_slots;
long m_cnt;
int WriteStringToFile(int fhandle, int calculate);
int ReadStringFromFile(int fhandle, int ml);
inline void KillSlots()
{
if(m_slots) delete [] m_slots;
m_slots=NULL;
m_cnt=0;
}
};
#endif // !defined(AFX_SRC_H__3CB9CB45_30FE_4026_A800_0588B9F07FA5__INCLUDED_)