Skip to content

Commit

Permalink
chore: modify include files and source files directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
wgy8283335 committed Mar 1, 2024
1 parent a2726e4 commit d11ce63
Show file tree
Hide file tree
Showing 19 changed files with 18 additions and 18 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# define EFFECTIVE_BRID_H_

# include "animal.h"
# include "nest.h"
# include "effective_c++/home/nest.h"

namespace effective {
//> Bird是一个抽象类,因为Fly为纯虚函数。抽象类无法实例化。
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#pragma once
#ifndef EFFECTIVE_CAVE_H_
# define EFFECTIVE_CAVE_H_
# include "home.h"
# include "lock.h"
# include "effective_c++/home/home.h"
# include "effective_c++/lock.h"
namespace effective {
/**
* @brief The Cave class provide address for animal living
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# define EFFECTIVE_HOME_H_
# include <string>

# include "clock.h"
# include "effective_c++/clock.h"

namespace effective {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#pragma once
#ifndef EFFECTIVE_NEST_H_
# define EFFECTIVE_NEST_H_
# include "home.h"
# include "lock.h"
# include "effective_c++/home/home.h"
# include "effective_c++/lock.h"
namespace effective {
/**
* @brief The Nest class provide address for animal living
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "effective_c++/animal.h"
#include "effective_c++/animal/animal.h"

//> 不要导入整个命名空间std,因为会有符号名冲突。导入具体的符号可以将冲突范围最小化。
using std::string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "effective_c++/bird.h"
#include "effective_c++/animal/bird.h"

#include <memory>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "effective_c++/insect.h"
#include "effective_c++/animal/insect.h"

using namespace effective;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "effective_c++/sparrow.h"
#include "effective_c++/animal/sparrow.h"

using namespace effective;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "effective_c++/sparrow_pecker.h"
#include "effective_c++/animal/sparrow_pecker.h"

#include <iostream>

#include "effective_c++/sparrow.h"
#include "effective_c++/wood_pecker.h"
#include "effective_c++/animal/sparrow.h"
#include "effective_c++/animal/wood_pecker.h"

using std::cout;
using namespace effective;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "effective_c++/wood_pecker.h"
#include "effective_c++/animal/wood_pecker.h"

using namespace effective;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "effective_c++/cave.h"
#include "effective_c++/home/cave.h"

using std::string;
using namespace effective;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "effective_c++/home.h"
#include "effective_c++/home/home.h"

//> 不要导入整个命名空间std,因为会有符号名冲突。导入具体的符号可以将冲突范围最小化。
using std::string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "effective_c++/nest.h"
#include "effective_c++/home/nest.h"

using namespace effective;

Expand Down
2 changes: 1 addition & 1 deletion test/source/cave_test.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "effective_c++/cave.h"
#include "effective_c++/home/cave.h"

#include "doctest/doctest.h"

Expand Down

0 comments on commit d11ce63

Please sign in to comment.