-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ec58f46
commit ec389e5
Showing
12 changed files
with
288 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
class AbstractClass | ||
{ | ||
public: | ||
virtual int do1() = 0; | ||
virtual int do2() = 0; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
23 changes: 23 additions & 0 deletions
23
...HeaderPath.xcodeproj/xcuserdata/amatosov.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Bucket | ||
type = "1" | ||
version = "2.0"> | ||
<Breakpoints> | ||
<BreakpointProxy | ||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> | ||
<BreakpointContent | ||
shouldBeEnabled = "Yes" | ||
ignoreCount = "0" | ||
continueAfterRunningActions = "No" | ||
filePath = "RelativeHeaderPath/main.cpp" | ||
timestampString = "570390013.399508" | ||
startingColumnNumber = "9223372036854775807" | ||
endingColumnNumber = "9223372036854775807" | ||
startingLineNumber = "17" | ||
endingLineNumber = "17" | ||
landmarkName = "main(int argc, const char * argv[])" | ||
landmarkType = "9"> | ||
</BreakpointContent> | ||
</BreakpointProxy> | ||
</Breakpoints> | ||
</Bucket> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// main.cpp | ||
// RelativeHeaderPath | ||
// | ||
// Created by Anton Matosov on 1/28/19. | ||
// Copyright © 2019 Anton Matosov. All rights reserved. | ||
// | ||
|
||
#include <iostream> | ||
#include <memory> | ||
#include <assert.h> | ||
#include "ConcreteClass.hpp" | ||
|
||
int main(int argc, const char * argv[]) | ||
{ | ||
std::shared_ptr<AbstractClass> ptr(new ConcreteClass()); | ||
assert(ptr->do1() == 1); | ||
|
||
assert(ptr->do2() == 2); | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// ConcreteClass.cpp | ||
// RelativeHeaderPath | ||
// | ||
// Created by Anton Matosov on 1/28/19. | ||
// Copyright © 2019 Anton Matosov. All rights reserved. | ||
// | ||
|
||
#include "ConcreteClass.hpp" | ||
|
||
int ConcreteClass::do1() | ||
{ | ||
return 1; | ||
} | ||
|
||
|
||
int ConcreteClass::do2() | ||
{ | ||
return 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// | ||
// ConcreteClass.hpp | ||
// RelativeHeaderPath | ||
// | ||
// Created by Anton Matosov on 1/28/19. | ||
// Copyright © 2019 Anton Matosov. All rights reserved. | ||
// | ||
|
||
#pragma once | ||
|
||
|
||
#include "mylib/AbstractClass.h" | ||
|
||
class ConcreteClass: public AbstractClass | ||
{ | ||
public: | ||
int do1() override; | ||
int do2() override; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// StaticLib.cpp | ||
// StaticLib | ||
// | ||
// Created by Anton Matosov on 1/28/19. | ||
// Copyright © 2019 Anton Matosov. All rights reserved. | ||
// | ||
|
||
#include <iostream> | ||
#include "StaticLib.hpp" | ||
#include "StaticLibPriv.hpp" | ||
|
||
void StaticLib::HelloWorld(const char * s) | ||
{ | ||
StaticLibPriv *theObj = new StaticLibPriv; | ||
theObj->HelloWorldPriv(s); | ||
delete theObj; | ||
}; | ||
|
||
void StaticLibPriv::HelloWorldPriv(const char * s) | ||
{ | ||
std::cout << s << std::endl; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// StaticLib.hpp | ||
// StaticLib | ||
// | ||
// Created by Anton Matosov on 1/28/19. | ||
// Copyright © 2019 Anton Matosov. All rights reserved. | ||
// | ||
|
||
#ifndef StaticLib_ | ||
#define StaticLib_ | ||
|
||
/* The classes below are exported */ | ||
#pragma GCC visibility push(default) | ||
|
||
class StaticLib | ||
{ | ||
public: | ||
void HelloWorld(const char *); | ||
}; | ||
|
||
#pragma GCC visibility pop | ||
#endif |
Oops, something went wrong.