blob: 6e5a97fd31f837db23f7188f63b517ac87405ee0 (
plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
#ifndef LLSYSNTAXIDLSL_H
#define LLSYSNTAXIDLSL_H
#endif // LLSYSNTAXIDLSL_H
#include "llviewerprecompiledheaders.h"
#include "llagent.h"
#include "llenvmanager.h"
#include "llhttpclient.h"
#include "llviewerregion.h"
//class LLKeywords;
/**
* @file llsyntaxid.h
* @brief The LLSyntaxIdLSL class
*/
class LLSyntaxIdLSL
{
public:
/**
* @brief LLSyntaxIdLSL constructor
*/
LLSyntaxIdLSL();
LLUUID getSyntaxId() const { return mCurrentSyntaxId; }
bool checkSyntaxIdChange();
std::string filenameCurrent() { return mFilenameCurrent; }
ELLPath filenamePath() { return mFilenameLocation; }
void initialise();
static void setKeywordsXml(LLSD& content) { LLSyntaxIdLSL::mKeywordsXml = content; }
protected:
std::string buildFilename(LLUUID& SyntaxId);
bool fetchKeywordsFile();
void openKeywordsFile();
void setSyntaxId(LLUUID SyntaxId) { mCurrentSyntaxId = SyntaxId; }
void setFilenameCurrent(std::string& name) { mFilenameCurrent = name; }
void setFilenameDefault(std::string& name) { mFilenameDefault = name; }
void setSimulatorFeatureName(const std::string& name) { mSimulatorFeature = name; }
public:
static LLHTTPClient::ResponderPtr mResponder;
protected:
// LLKeywords& mKeywords;
LLViewerRegion* mRegion;
private:
std::string mCapabilityName;
LLUUID mCurrentSyntaxId;
std::string mFilenameCurrent;
std::string mFilenameDefault;
std::string mFilenameFull;
ELLPath mFilenameLocation;
std::string mFilenameSpec;
static LLSD mKeywordsXml;
std::string mSimulatorFeature;
};
|