|
Yate
|
SS7 Code Point. More...
#include <yatesig.h>
Public Types | |
| enum | Type { Other = 0 , ITU = 1 , ANSI = 2 , ANSI8 = 3 , China = 4 , Japan = 5 , Japan5 = 6 , DefinedTypes } |
Public Member Functions | |
| SS7PointCode (unsigned char network=0, unsigned char cluster=0, unsigned char member=0) | |
| SS7PointCode (Type type, unsigned int packed) | |
| SS7PointCode (const SS7PointCode &original) | |
| ~SS7PointCode () | |
| unsigned char | network () const |
| unsigned char | cluster () const |
| unsigned char | member () const |
| void | assign (unsigned char network, unsigned char cluster, unsigned char member) |
| bool | assign (const String &src, Type type=Other) |
| bool | assign (Type type, const unsigned char *src, int len=-1, unsigned char *spare=0) |
| SS7PointCode & | operator= (const SS7PointCode &original) |
| bool | operator== (const SS7PointCode &original) const |
| bool | operator!= (const SS7PointCode &original) const |
| bool | compatible (Type type) const |
| unsigned int | pack (Type type) const |
| bool | unpack (Type type, unsigned int packed) |
| bool | store (Type type, unsigned char *dest, unsigned char spare=0) const |
Public Member Functions inherited from GenObject | |
| GenObject () | |
| virtual | ~GenObject () |
| virtual bool | alive () const |
| virtual void | destruct () |
| virtual const String & | toString () const |
| virtual const String & | traceId () const |
| virtual void * | getObject (const String &name) const |
| NamedCounter * | getObjCounter () const |
| NamedCounter * | setObjCounter (NamedCounter *counter) |
Static Public Member Functions | |
| static unsigned char | size (Type type) |
| static unsigned char | length (Type type) |
| static Type | lookup (const char *text) |
| static const char * | lookup (Type type) |
Static Public Member Functions inherited from GenObject | |
| static void * | getObject (const String &name, const GenObject *obj) |
| static bool | getObjCounting () |
| static void | setObjCounting (bool enable) |
| static NamedCounter * | getObjCounter (const String &name, bool create=true) |
| static ObjList & | getObjCounters () |
SS7 Code Point.
An universal SS7 Layer 3 routing Code Point
| enum Type |
Different incompatible types of points codes
|
inline |
Constructor from components
| network | ANSI Network Identifier / ITU-T Zone Identification |
| cluster | ANSI Network Cluster / ITU-T Area/Network Identification |
| member | ANSI Cluster Member / ITU-T Signalling Point Identification |
References cluster(), member(), and network().
Referenced by operator!=(), operator=(), operator==(), and SS7PointCode().
|
inline |
|
inline |
Copy constructor
| original | Code point to be copied |
References cluster(), member(), network(), and SS7PointCode().
|
inline |
Destructor
Assign data members from a given string of form 'network-cluster-member'
| src | Source string |
| type | Type of the point code if numeric (packed) representation is used |
| bool assign | ( | Type | type, |
| const unsigned char * | src, | ||
| int | len = -1, | ||
| unsigned char * | spare = 0 ) |
Assign data members from a packed memory block
| type | Type of the point code in memory |
| src | Pointer to packed point code in memory |
| len | Length of data, negative to not check validity |
| spare | Pointer to variable to save spare bits, NULL to ignore them |
|
inline |
Assignment from components
| network | ANSI Network Identifier / ITU-T Zone Identification |
| cluster | ANSI Network Cluster / ITU-T Area/Network Identification |
| member | ANSI Cluster Member / ITU-T Signalling Point Identification |
References cluster(), member(), and network().
Referenced by operator=().
|
inline |
Retrieve the Cluster / Area component of the Code Point
Referenced by assign(), operator!=(), operator=(), operator==(), SS7PointCode(), and SS7PointCode().
| bool compatible | ( | Type | type | ) | const |
Check if the point code is compatible with a packing type
|
static |
Get the length (in octets) of a packed code point according to its type
| type | Type of the packing |
|
inlinestatic |
Get a point type associated to a given text
| text | Text to find |
Referenced by SccpRemote::getPointCodeType().
|
inlinestatic |
Get the text associated to a point type
| type | Type to find |
|
inline |
Retrieve the Cluster / Point component of the Code Point
Referenced by assign(), operator!=(), operator=(), operator==(), SS7PointCode(), and SS7PointCode().
|
inline |
Retrieve the Network / Zone component of the Code Point
Referenced by assign(), operator!=(), operator=(), operator==(), SS7PointCode(), and SS7PointCode().
|
inline |
Inequality operator
| original | Code point to be compared with |
References cluster(), member(), network(), and SS7PointCode().
|
inline |
Assignment operator
| original | Code point to be copied |
References assign(), cluster(), member(), network(), and SS7PointCode().
|
inline |
Equality operator
| original | Code point to be compared with |
References cluster(), member(), network(), and SS7PointCode().
| unsigned int pack | ( | Type | type | ) | const |
Pack the code point into a single integer number.
| type | Type of the packing desired |
Referenced by SS7Layer3::getRoutePriority(), SS7Layer3::getRouteState(), and SS7Router::setRouteState().
|
static |
Get the size (in bits) of a packed code point according to its type
| type | Type of the packing |
| bool store | ( | Type | type, |
| unsigned char * | dest, | ||
| unsigned char | spare = 0 ) const |
| bool unpack | ( | Type | type, |
| unsigned int | packed ) |
Unpack an integer number into a point code
| type | Type of the unpacking desired |
| packed | Packed format of the point code |
Referenced by SS7PointCode().