00001 #ifndef OTPATH_H
00002 #define OTPATH_H
00003
00004 #include "ot_lib.h"
00005
00006
00007 class ot_path : public ot_obj
00008 {
00009 private:
00010
00011 string m_path;
00012
00013
00014 void stripPath(const string &path,string &iPath,string &name) const;
00015
00016
00017 public:
00018
00019
00020
00021
00022
00023
00024 ot_path(const string &path);
00025
00026 ot_path(const char *path);
00027
00028 ot_path(const ot_path &r);
00029
00030
00031
00032
00033
00034
00036 ot_obj *dup(void) const;
00037
00041 void asXml(ostream &s=cout,int i=0) const;
00042
00045 bool asData(ostream &s) const;
00046
00047
00048
00049
00050
00051
00053 const ot_path & operator= (const ot_path &c);
00054
00056 bool operator == (const ot_path &v) const;
00057
00059 bool operator == (const ot_obj *o) const
00060 {
00061 if(o && o->getType()==getType()) return(*this==*((ot_path *) o));
00062 else return(false);
00063 }
00064
00065
00066
00067
00068
00069
00070 const string getInterfaceName(void) const;
00071 const string getName(void) const;
00072 const string getPath(void) const;
00073
00074 };
00075
00076
00077
00078 #endif