3D Repo Bouncer  1.4
repo_node_texture.h
1 
21 #pragma once
22 #include "repo_node.h"
23 
24 namespace repo {
25  namespace core {
26  namespace model {
27  //------------------------------------------------------------------------------
28  //
29  // Fields specific to texture only
30  //
31  //------------------------------------------------------------------------------
32 #define REPO_NODE_TYPE_TEXTURE "texture"
33 #define REPO_NODE_LABEL_BIT_DEPTH "bit_depth"
34 #define REPO_NODE_LABEL_EXTENSION "extension"
35 #define REPO_NODE_LABEL_DATA_BYTE_COUNT "data_byte_count"
36  //------------------------------------------------------------------------------
37 
38  class REPO_API_EXPORT TextureNode :public RepoNode
39  {
40  public:
41 
45  TextureNode();
46 
51  TextureNode(RepoBSON bson);
52 
56  ~TextureNode();
57 
62  virtual std::string getType() const
63  {
64  return REPO_NODE_TYPE_TEXTURE;
65  }
66 
71  virtual NodeType getTypeAsEnum() const
72  {
73  return NodeType::TEXTURE;
74  }
75 
83  virtual bool sEqual(const RepoNode &other) const;
84 
93  std::vector<char> getRawData() const;
94 
95  std::string getFileExtension() const;
96  };
97  } //namespace model
98  } //namespace core
99 } //namespace repo
Definition: repo_connection_pool_mongo.h:32
virtual std::string getType() const
Definition: repo_node_texture.h:62
virtual NodeType getTypeAsEnum() const
Definition: repo_node_texture.h:71
Definition: repo_node_texture.h:38
Definition: repo_node.h:33
Definition: repo_bson.h:53