Construct and destruct compound name objects.
![]() |
public:
virtual ~ICompoundName()
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
ICompoundName( const IText& path, const ICompoundNameParser& parser )
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
ICompoundName()
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
ICompoundName(const ICompoundName& copyMe)
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
ICompoundName& operator =(const ICompoundName& copyMe)
Windows | OS/2 | AIX |
Yes | Yes | Yes |
These methods allow you to access individual path components.
![]() |
public:
virtual IText componentAt(unsigned long index) const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
virtual IText lastComponent() const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
virtual unsigned long numberOfComponents() const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
These methods compare compound names and query information about them.
![]() |
public:
virtual long hash() const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
virtual bool isFullPath() const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
virtual bool operator !=( const ICompoundName& anotherPath ) const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
virtual bool operator ==( const ICompoundName& anotherPath ) const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
virtual void setFullPath(bool isFull)
Windows | OS/2 | AIX |
Yes | Yes | Yes |
These methods allow you to add and remove name segments of a compound name.
![]() |
public:
virtual void append(const ICompoundName& relativePath)
IInvalidParameter | is thrown if relativePath is a full path. |
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
virtual void appendComponent(const IText& componentPath)
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
virtual void factorCommonRoot( const ICompoundName& anotherPath, ICompoundName& commonRoot, ICompoundName& rootToLeaf ) const
If two paths have common roots, as in /usr/include/sys/mode.h (in "this") and /usr/include/Foo.h (in "anotherPath"), this method finds the common part (in "commonRoot"), leaving (in "rootToLeaf"), sys/mode.h.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
virtual void truncate(const ICompoundName& relativePath)
Truncate is similar to factorCommonRoot, but works from the "end" of the path, not the beginning. If "this" path is /usr/include/sys/mode.h, and "relativePath" is sys/mode.h, this member function will change "this" to be /usr/include.
IInvalidParameter | is thrown if relativePath does not exist at the end of this path. |
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
virtual void truncate(unsigned long segmentsToRemove)
Windows | OS/2 | AIX |
Yes | Yes | Yes |
These methods support the streaming of compound name objects.
![]() |
public:
virtual void readFromStream(IDataStream& fromwhere)
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
virtual void writeToStream(IDataStream& towhere) const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
virtual ~IMStreamable()
void externalizeToStream(IDataStream& towhere) const
void internalizeFromStream(IDataStream& fromwhere)
virtual const ITypeRepresentation& typeRepresentation() const = 0
IMStreamable(const IMStreamable& other)
IMStreamable()
virtual void readFromStream(IDataStream& fromwhere) = 0
virtual void writeToStream(IDataStream& towhere) const = 0