Rule Class Reference

#include <amp.h>

List of all members.

Public Member Functions

 Rule (DeliverType deliver, ActionType action)
 Rule (const std::string &date, ActionType action)
 Rule (MatchResourceType match, ActionType action)
 Rule (const std::string &condition, const std::string &action, const std::string &value)
 ~Rule ()
Tagtag () const

Detailed Description

Describes an AMP rule.

Author:
Jakob Schroeter <js@camaya.net>
Since:
1.0

Definition at line 116 of file amp.h.


Constructor & Destructor Documentation

Rule ( DeliverType  deliver,
ActionType  action 
)

Creates a new AMP rule object with a condition of 'deliver'.

Parameters:
deliver The delivery type.
action The rule's action.

Definition at line 43 of file amp.cpp.

Rule ( const std::string &  date,
ActionType  action 
)

Creates a new AMP rule object with a condition of 'expire-at'.

Parameters:
date The expiry date/time in the format defined in XEP-0082.
action The rule's action.

Definition at line 48 of file amp.cpp.

Rule ( MatchResourceType  match,
ActionType  action 
)

Creates a new AMP rule object with a condition of 'match-resource'.

Parameters:
match The match type.
action The rule's action.

Definition at line 53 of file amp.cpp.

Rule ( const std::string &  condition,
const std::string &  action,
const std::string &  value 
)

Creates a new AMP rule object from the given strings.

Parameters:
condition The rule's condition.
action The rule's action.
value The rule's value.

Definition at line 58 of file amp.cpp.

~Rule (  ) 

Destructor.

Definition at line 80 of file amp.cpp.


Member Function Documentation

Tag * tag (  )  const

Creates a Tag representation from the current rule.

Returns:
A Tag representation of the rule.

Definition at line 86 of file amp.cpp.


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

Generated by  doxygen 1.6.2