Design Pattern Examples
Overview of object-oriented design patterns
cplusplus/Composite_FileDirEntry.h File Reference

Implementation of the FileDirEntry, FileEntry, and DirEntry classes used in the Composite Pattern. More...

#include <string>
#include <vector>
#include "helpers/DateTime.h"
Include dependency graph for cplusplus/Composite_FileDirEntry.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  FileDirEntry
 Base class representing a File or Directory entry. More...
 
class  FileEntry
 Represents a File entry. More...
 
class  DirEntry
 Represents a Directory entry. More...
 

Namespaces

namespace  DesignPatternExamples_cpp
 The namespace containing all Design Pattern Examples implemented in C++.
 

Macros

#define __COMPOSITE_FILEDIRENTRY_H__
 

Typedefs

typedef std::vector< std::shared_ptr< FileDirEntry > > FileDirEntryList
 Makes it easier to refer to a list of child nodes.
 

Enumerations

enum  FileDirTypes { File , Directory }
 Represents the type of entries allowed in the hierarchy for the Composite design pattern example. More...
 

Detailed Description

Implementation of the FileDirEntry, FileEntry, and DirEntry classes used in the Composite Pattern.

Definition in file cplusplus/Composite_FileDirEntry.h.

Macro Definition Documentation

◆ __COMPOSITE_FILEDIRENTRY_H__

#define __COMPOSITE_FILEDIRENTRY_H__

Definition at line 10 of file cplusplus/Composite_FileDirEntry.h.