summaryrefslogtreecommitdiff
path: root/mythfs/service/inodes/node.h
blob: b88e403a636d790b33ebe7d56a720df8ba16fbb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef MYTHFS_NODE_H
#define MYTHFS_NODE_H

#include <map>
#include <string>
#include <IceUtil/Handle.h>
#include <Ice/Object.h>
#include <types.h>

namespace MythFS {
	class Node;

	typedef std::map<std::string, IceUtil::Handle<Node>> Contents;

	class Node : public virtual Ice::Object {
		public:
			typedef IceUtil::Handle<Node> PointerType;

			virtual NetFS::Attr getattr() const = 0;
			virtual std::string readlink() const;
			virtual PointerType getChild(const std::string &) const;
			virtual NetFS::NameList getContents() const;
	};
}

#endif