Common Class Definitions
This part contains the declaration of the three common TTCN Access classes AccessSuite, AccessNode and Astring. For further information see TTCN Access include file access.hh.
AccessSuite
class AccessSuite
{
public:
AccessSuite();
~AccessSuite();
AccessSuite( const AccessSuite& orig );
void operator=( const AccessSuite& orig );
Boolean open( const char* suite_name );
Boolean open( Suite* suite );
Boolean close();
const AccessNode root();
const AccessNode find( const Identifier & id );
const AccessNode find( const char* id );
};
AccessNode
class AccessNode
{
public:
AccessNode();
AccessNode(NodeInfo nodeinfo);
~AccessNode();
AccessNode(const AccessNode& Me);
int operator==(const AccessNode& o) const;
void operator=(const AccessNode& orig);
Boolean is_equal(const AccessNode& o) const;
Choices::Choice choice() const;
Boolean ok() const;
};
Astring
class Astring
{
public:
Astring();
Astring(const char* s);
// end should point to the char after the last
char
Astring(const char* begin, const char* end);
Astring(Field* field, PT* pt);
Astring(const Astring& orig);
~Astring();
//operators
Astring* operator->();
const Astring* operator->() const;
operator const char*() const;
char& operator[](unsigned i) ;
char operator[](unsigned i) const ;
void operator=(const Astring&);
void operator=(const String&);
void operator=(const char*);
void operator=(const char);
int operator==(const Astring& s) const;
int operator!=(const Astring& s) const;
int operator==(const char* cs) const;
int operator!=(const char* cs) const;
};