Subversion Repositories HomeAutomation

Rev

Rev 1326 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1326 Rev 1328
Line 11... Line 11...
11
 
11
 
12
Protocol::pointer Protocol::Instance(new Protocol());
12
Protocol::pointer Protocol::Instance(new Protocol());
13
 
13
 
14
Protocol::Protocol()
14
Protocol::Protocol()
15
{
15
{
-
 
16
    this->myIsLoaded = false;
16
    LOG.setName("Protocol");
17
    LOG.setName("Protocol");
17
}
18
}
18
 
19
 
19
Protocol::~Protocol()
20
Protocol::~Protocol()
20
{
21
{
Line 41... Line 42...
41
    LOG.info("Loaded protocol cache from \"" + cachefilename + "\".");
42
    LOG.info("Loaded protocol cache from \"" + cachefilename + "\".");
42
 
43
 
43
    // TODO If not found generate one
44
    // TODO If not found generate one
44
 
45
 
45
    // TODO Check if versions match, if not update cache
46
    // TODO Check if versions match, if not update cache
-
 
47
 
-
 
48
    this->myIsLoaded = true;
46
}
49
}
47
 
50
 
48
xml::Node & Protocol::getRootNode()
51
xml::Node & Protocol::getRootNode()
49
{
52
{
50
    return this->myXmlNode;
53
    return this->myXmlNode;
51
}
54
}
52
 
55
 
53
xml::Node & Protocol::getRootCacheNode()
56
xml::Node & Protocol::getRootCacheNode()
-
 
57
{
-
 
58
    return this->myXmlCacheNode;
-
 
59
}
-
 
60
 
-
 
61
bool Protocol::isLoaded()
54
{
62
{
55
    return this->myXmlCacheNode;
63
    return this->myIsLoaded;
56
}
64
}
57
 
65
 
58
}
66
}
59
 
67