Anope IRC Services  Version 2.0
Public Member Functions | Static Public Member Functions | Data Fields
FlagsChanAccess Class Reference
Inheritance diagram for FlagsChanAccess:
Inheritance graph
[legend]
Collaboration diagram for FlagsChanAccess:
Collaboration graph
[legend]

Public Member Functions

 FlagsChanAccess (AccessProvider *p)
 
bool HasPriv (const Anope::string &priv) const anope_override
 
Anope::string AccessSerialize () const
 
void AccessUnserialize (const Anope::string &data) anope_override
 
- Public Member Functions inherited from ChanAccess
 ChanAccess (AccessProvider *p)
 
virtual ~ChanAccess ()
 
void SetMask (const Anope::string &mask, ChannelInfo *ci)
 
const Anope::stringMask () const
 
NickCoreGetAccount () const
 
void Serialize (Serialize::Data &data) const anope_override
 
virtual bool Matches (const User *u, const NickCore *nc, Path &p) const
 
virtual bool operator> (const ChanAccess &other) const
 
virtual bool operator< (const ChanAccess &other) const
 
bool operator>= (const ChanAccess &other) const
 
bool operator<= (const ChanAccess &other) const
 
- Public Member Functions inherited from Serializable
virtual ~Serializable ()
 
void QueueUpdate ()
 
bool IsCached (Serialize::Data &)
 
void UpdateCache (Serialize::Data &)
 
bool IsTSCached ()
 
void UpdateTS ()
 
Serialize::TypeGetSerializableType () const
 
- Public Member Functions inherited from Base
 Base ()
 
virtual ~Base ()
 
void AddReference (ReferenceBase *r)
 
void DelReference (ReferenceBase *r)
 

Static Public Member Functions

static Anope::string DetermineFlags (const ChanAccess *access)
 
- Static Public Member Functions inherited from ChanAccess
static SerializableUnserialize (Serializable *obj, Serialize::Data &)
 
- Static Public Member Functions inherited from Serializable
static const std::list
< Serializable * > & 
GetItems ()
 

Data Fields

std::set< char > flags
 
- Data Fields inherited from ChanAccess
AccessProviderprovider
 
Serialize::Reference< ChannelInfoci
 
Anope::string creator
 
time_t last_seen
 
time_t created
 
- Data Fields inherited from Serializable
uint64_t id
 
unsigned short redis_ignore
 

Additional Inherited Members

- Public Types inherited from ChanAccess
typedef std::multimap< const
ChanAccess *, const ChanAccess * > 
Set
 
typedef std::pair< Set, SetPath
 
- Protected Member Functions inherited from Serializable
 Serializable (const Anope::string &serialize_type)
 
 Serializable (const Serializable &)
 
Serializableoperator= (const Serializable &)
 

Detailed Description

Definition at line 16 of file cs_flags.cpp.

Constructor & Destructor Documentation

FlagsChanAccess::FlagsChanAccess ( AccessProvider p)
inline

Definition at line 21 of file cs_flags.cpp.

Member Function Documentation

Anope::string FlagsChanAccess::AccessSerialize ( ) const
inlinevirtual

Serialize the access given by this access entry into a human readable form. chanserv/access will return a number, chanserv/xop will be AOP, SOP, etc.

Implements ChanAccess.

Definition at line 33 of file cs_flags.cpp.

Referenced by CommandCSFlags::DoModify().

void FlagsChanAccess::AccessUnserialize ( const Anope::string data)
inlinevirtual

Unserialize this access entry from the given data. This data will be fetched from AccessSerialize.

Implements ChanAccess.

Definition at line 38 of file cs_flags.cpp.

static Anope::string FlagsChanAccess::DetermineFlags ( const ChanAccess access)
inlinestatic
bool FlagsChanAccess::HasPriv ( const Anope::string name) const
inlinevirtual

Check if this access entry has the given privilege.

Parameters
nameThe privilege name

Implements ChanAccess.

Definition at line 25 of file cs_flags.cpp.

References defaultFlags.

Field Documentation

std::set<char> FlagsChanAccess::flags

Definition at line 19 of file cs_flags.cpp.

Referenced by CommandCSFlags::DoModify().


The documentation for this class was generated from the following file: