VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtPathList.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtPathList.h,v $ $Revision: 1.4 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 #include <vrvUtil/vrvUtil.h>
15 #include <string>
16 #include <vector>
17 
18 namespace makVrv
19 {
24  {
25  public:
26 
28  DtPathList();
29 
31  DtPathList(const std::string& path, char separator = defaultSeparator() );
32 
34  DtPathList(const std::vector<std::string>& path,
35  char separator = defaultSeparator() );
36 
38  DtPathList(const DtPathList& orig);
39 
41  DtPathList& operator=(const DtPathList&);
42 
44  DtPathList& operator=(const std::vector<std::string>&);
45 
47  ~DtPathList();
48 
49  void setSeparator( char separator );
50  char separator() const;
51 
53  void pop();
54 
56  void push(const std::string& p);
57 
59  std::string path() const;
60 
61  unsigned int size() const;
62 
63  const std::string& operator[](int i) const;
64 
65  bool descendsFrom(const DtPathList& s) const;
66 
67  void remove(int i);
68 
69  bool contains(const std::string& s) const;
70 
71  public:
72  static char defaultSeparator();
73 
74  protected:
75  std::vector<std::string> pathListFrom( const std::string& path );
76 
77  protected:
78  std::vector<std::string> myPath;
80  };
81 }

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)