view Main/jungle-main/JungleTreeEditor.cs @ 29:f7616084d3ab

Continue to put on the created path.
author Kazuma Takeda
date Wed, 18 Jan 2017 21:02:24 +0900
parents 9588ad364fdd
children 236a58985e22
line wrap: on
line source


namespace JungleDB {
	public interface JungleTreeEditor {
		Either<Error,JungleTreeEditor> addNewChildAt(NodePath path,int pos);
		Either<Error,JungleTreeEditor> deleteChildAt(NodePath path,int pos);
		Either<Error,JungleTreeEditor> putAttribute(NodePath path,string key, byte[] value);
		Either<Error,JungleTreeEditor> putAttribute(string key, byte[] value);
		// add Method put Attribute (path, T?);
		// Either<Error, JungleTreeEditor> putAttribute<T>(NodePath path, string Key, MultiAttributes<T> value);
		Either<Error,JungleTreeEditor> deleteAttribute(NodePath path,string key);
		Either<Error, JungleTreeEditor> replaceNewRootNode();
		Either<Error,JungleTreeEditor> edit(NodePath path, NodeEditor editor);
		Either<Error,JungleTreeEditor> commit();
		Either<Error,JungleTreeEditor> flushSuccess();

	}
}