Subversion Repositories HomeAutomation

Rev

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

Rev 1642 Rev 2118
Line 20... Line 20...
20
 
20
 
21
#ifndef TYPE_BITSET_H
21
#ifndef TYPE_BITSET_H
22
#define TYPE_BITSET_H
22
#define TYPE_BITSET_H
23
 
23
 
24
#include <boost/shared_ptr.hpp>
24
#include <boost/shared_ptr.hpp>
-
 
25
#include <stdint.h>
25
 
26
 
26
#include "common.h"
27
#include "common.h"
27
#include "Byteset.h"
28
#include "Byteset.h"
28
 
29
 
29
namespace atom {
30
namespace atom {
Line 40... Line 41...
40
   
41
   
41
    int Set(unsigned int position);
42
    int Set(unsigned int position);
42
    int Unset(unsigned int position);
43
    int Unset(unsigned int position);
43
    int Get(unsigned int position);
44
    int Get(unsigned int position);
44
   
45
   
45
    unsigned long Read(unsigned int position, unsigned int length);
46
    uint64_t Read(unsigned int position, unsigned int length);
46
    void Write(unsigned int position, unsigned int length, unsigned long value);
47
    void Write(unsigned int position, unsigned int length, uint64_t value);
47
   
48
   
48
    unsigned int GetCount();
49
    unsigned int GetCount();
49
    unsigned char* GetBytes() const;
50
    unsigned char* GetBytes() const;
50
   
51
   
51
    std::string ToDebugString();
52
    std::string ToDebugString();