PASN_BitString Class Reference
#include <asner.h>
List of all members.
Detailed Description
Class for ASN Bit String type.
Constructor & Destructor Documentation
PASN_BitString::PASN_BitString |
( |
unsigned |
nBits = 0 , |
|
|
const BYTE * |
buf = NULL | |
|
) |
| | |
PASN_BitString::PASN_BitString |
( |
unsigned |
tag, |
|
|
TagClass |
tagClass, |
|
|
unsigned |
nBits = 0 | |
|
) |
| | |
Member Function Documentation
void PASN_BitString::Clear |
( |
unsigned |
bit |
) |
|
virtual PObject* PASN_BitString::Clone |
( |
|
) |
const [virtual] |
Create a copy of the class on the heap. The exact semantics of the descendent class determine what is required to make a duplicate of the instance. Not all classes can even do a clone operation.
The main user of the clone function is the PDictionary class as it requires copies of the dictionary keys.
The default behaviour is for this function to assert.
- Returns:
- pointer to new copy of the class instance.
Reimplemented from PObject.
Compare the two objects and return their relative rank. This function is usually overridden by descendent classes to yield the ranking according to the semantics of the object.
The default function is to use the CompareObjectMemoryDirect() function to do a byte wise memory comparison of the two objects.
- Returns:
- LessThan, EqualTo or GreaterThan according to the relative rank of the objects.
Reimplemented from PObject.
PBoolean PASN_BitString::DecodeBER |
( |
PBER_Stream & |
strm, |
|
|
unsigned |
len | |
|
) |
| | |
PBoolean PASN_BitString::DecodePER |
( |
PPER_Stream & |
strm |
) |
|
PBoolean PASN_BitString::DecodeSequenceExtensionBitmap |
( |
PPER_Stream & |
strm |
) |
|
virtual void PASN_BitString::Encode |
( |
PASN_Stream & |
|
) |
const [virtual] |
void PASN_BitString::EncodeBER |
( |
PBER_Stream & |
strm |
) |
const |
void PASN_BitString::EncodePER |
( |
PPER_Stream & |
strm |
) |
const |
void PASN_BitString::EncodeSequenceExtensionBitmap |
( |
PPER_Stream & |
strm |
) |
const |
virtual PINDEX PASN_BitString::GetDataLength |
( |
|
) |
const [virtual] |
const BYTE* PASN_BitString::GetDataPointer |
( |
|
) |
const [inline] |
unsigned PASN_BitString::GetSize |
( |
|
) |
const [inline] |
virtual PString PASN_BitString::GetTypeAsString |
( |
|
) |
const [virtual] |
Return a string giving the type of the object
Implements PASN_Object.
void PASN_BitString::Invert |
( |
unsigned |
bit |
) |
|
bool PASN_BitString::operator[] |
( |
PINDEX |
bit |
) |
const |
virtual void PASN_BitString::PrintOn |
( |
ostream & |
strm |
) |
const [virtual] |
Output the contents of the object to the stream. The exact output is dependent on the exact semantics of the descendent class. This is primarily used by the standard operator<< function.
The default behaviour is to print the class name.
Reimplemented from PObject.
void PASN_BitString::Set |
( |
unsigned |
bit |
) |
|
virtual void PASN_BitString::SetConstraintBounds |
( |
ConstraintType |
type, |
|
|
int |
lower, |
|
|
unsigned |
upper | |
|
) |
| | [virtual] |
void PASN_BitString::SetData |
( |
unsigned |
nBits, |
|
|
const BYTE * |
buf, |
|
|
PINDEX |
size = 0 | |
|
) |
| | |
void PASN_BitString::SetData |
( |
unsigned |
nBits, |
|
|
const PBYTEArray & |
bytes | |
|
) |
| | |
PBoolean PASN_BitString::SetSize |
( |
unsigned |
nBits |
) |
|
Member Data Documentation
The documentation for this class was generated from the following file: