VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 
9 
10 #pragma once
11 #include <vrvUtil/vrvUtil.h>
12 #include <string>
13 #include <vector>
14 
15 namespace makVrv
16 {
21  {
22  public:
23 
25  DtPathList();
26 
28  DtPathList(const std::string& path, char separator = defaultSeparator() );
29 
31  DtPathList(const std::vector<std::string>& path,
32  char separator = defaultSeparator() );
33 
35  DtPathList(const DtPathList& orig);
36 
38  DtPathList& operator=(const DtPathList&);
39 
41  DtPathList& operator=(const std::vector<std::string>&);
42 
44  ~DtPathList();
45 
46  void setSeparator( char separator );
47  char separator() const;
48 
50  void pop();
51 
53  void push(const std::string& p);
54 
56  std::string path() const;
57 
58  unsigned int size() const;
59 
60  const std::string& operator[](int i) const;
61 
62  bool descendsFrom(const DtPathList& s) const;
63 
64  void remove(int i);
65 
66  bool contains(const std::string& s) const;
67 
68  public:
69  static char defaultSeparator();
70 
71  protected:
72  std::vector<std::string> pathListFrom( const std::string& path );
73 
74  protected:
75  std::vector<std::string> myPath;
77  };
78 }
#define DT_DLL_VRVUTIL
Definition: vrvUtil.h:34
voidpf void uLong size
Definition: ioapi.h:39
char mySeparator
Definition: DtPathList.h:76
Contains DLL export macros.
std::vector< std::string > myPath
Definition: DtPathList.h:75
Utility class which contains a single path which is represented as a list of strings.
Definition: DtPathList.h:20

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)