|
a/src/internfile/uncomp.h |
|
b/src/internfile/uncomp.h |
|
... |
|
... |
17 |
#ifndef _UNCOMP_H_INCLUDED_
|
17 |
#ifndef _UNCOMP_H_INCLUDED_
|
18 |
#define _UNCOMP_H_INCLUDED_
|
18 |
#define _UNCOMP_H_INCLUDED_
|
19 |
|
19 |
|
20 |
#include <vector>
|
20 |
#include <vector>
|
21 |
#include <string>
|
21 |
#include <string>
|
|
|
22 |
#include <mutex>
|
22 |
|
23 |
|
23 |
#include "pathut.h"
|
24 |
#include "pathut.h"
|
24 |
#include "rclutil.h"
|
25 |
#include "rclutil.h"
|
25 |
#include "ptmutex.h"
|
|
|
26 |
|
26 |
|
27 |
/// Uncompression script interface.
|
27 |
/// Uncompression script interface.
|
28 |
class Uncomp {
|
28 |
class Uncomp {
|
29 |
public:
|
29 |
public:
|
30 |
Uncomp(bool docache = false)
|
30 |
Uncomp(bool docache = false)
|
|
... |
|
... |
56 |
}
|
56 |
}
|
57 |
~UncompCache()
|
57 |
~UncompCache()
|
58 |
{
|
58 |
{
|
59 |
delete m_dir;
|
59 |
delete m_dir;
|
60 |
}
|
60 |
}
|
61 |
PTMutexInit m_lock;
|
61 |
std::mutex m_lock;
|
62 |
TempDir *m_dir;
|
62 |
TempDir *m_dir;
|
63 |
std::string m_tfile;
|
63 |
std::string m_tfile;
|
64 |
std::string m_srcpath;
|
64 |
std::string m_srcpath;
|
65 |
};
|
65 |
};
|
66 |
static UncompCache o_cache;
|
66 |
static UncompCache o_cache;
|