www.pudn.com > TsapiCallRouting.rar > Rule.h


#pragma once 
 
#include  
 
class CRule 
{ 
public: 
	CRule(void); 
	~CRule(void); 
 
	CRule(char * rule, const char * destination); 
	CRule(const char * lowerBound, const char * upperBound, const char * destination); 
	CRule(int lowerBound, int upperBound, int destination); 
	CRule(char *  rule); 
private : 
	int _upperBound; 
	int _lowerBound; 
	int _destination; 
 
public: 
	boolean belongs(int number); 
	int getRoute(); 
	void set(const char * lowerBound, const char * upperBound, const char * destination); 
	void set(int lowerBound, int upperBound, int destination); 
	void set(char *  rule,  const char * destination);  
	void set(const char *  rule);  
	int getLowerBound(); 
	int getUpperBound(); 
	char * toString(char *message); 
	 
};