Skip to content

Commit 9758249

Browse files
Jinming-Huvinjiang
authored andcommitted
Reorganise .sln .vcxproj file, refactor samples
1 parent 4bb5ec2 commit 9758249

File tree

104 files changed

+660
-3391
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+660
-3391
lines changed

.gitmodules

-3
This file was deleted.

Microsoft.WindowsAzure.Storage/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ if(BUILD_TESTS)
171171
endif()
172172

173173
if(BUILD_SAMPLES)
174+
set(AZUREAZURAGE_LIBRARY_SAMPLE azurestoragesample)
174175
add_subdirectory(samples)
175176
endif()
176177

Microsoft.WindowsAzure.Storage/Microsoft.WindowsAzure.Storage.v140.vcxproj

-5
Original file line numberDiff line numberDiff line change
@@ -272,13 +272,8 @@
272272
</ItemGroup>
273273
<ItemGroup>
274274
<None Include="includes\wascore\constants.dat" />
275-
<None Include="packages.config" />
276275
</ItemGroup>
277276
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
278277
<ImportGroup Label="ExtensionTargets">
279278
</ImportGroup>
280-
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
281-
<PropertyGroup>
282-
</PropertyGroup>
283-
</Target>
284279
</Project>

Microsoft.WindowsAzure.Storage/Microsoft.WindowsAzure.Storage.v140.vcxproj.filters

+15-1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@
108108
<ClInclude Include="includes\wascore\filestream.h">
109109
<Filter>Header Files</Filter>
110110
</ClInclude>
111+
<ClInclude Include="includes\wascore\timer_handler.h">
112+
<Filter>Header Files</Filter>
113+
</ClInclude>
114+
<ClInclude Include="includes\wascore\xml_wrapper.h">
115+
<Filter>Header Files</Filter>
116+
</ClInclude>
111117
<ClInclude Include="includes\was\crc64.h">
112118
<Filter>Header Files</Filter>
113119
</ClInclude>
@@ -275,6 +281,15 @@
275281
<ClCompile Include="src\streams.cpp">
276282
<Filter>Source Files</Filter>
277283
</ClCompile>
284+
<ClCompile Include="src\executor.cpp">
285+
<Filter>Source Files</Filter>
286+
</ClCompile>
287+
<ClCompile Include="src\timer_handler.cpp">
288+
<Filter>Source Files</Filter>
289+
</ClCompile>
290+
<ClCompile Include="src\xml_wrapper.cpp">
291+
<Filter>Source Files</Filter>
292+
</ClCompile>
278293
<ClCompile Include="src\crc64.cpp">
279294
<Filter>Source Files</Filter>
280295
</ClCompile>
@@ -285,7 +300,6 @@
285300
</ResourceCompile>
286301
</ItemGroup>
287302
<ItemGroup>
288-
<None Include="packages.config" />
289303
<None Include="includes\wascore\constants.dat">
290304
<Filter>Header Files</Filter>
291305
</None>

Microsoft.WindowsAzure.Storage/Microsoft.WindowsAzure.Storage.v141.vcxproj

-5
Original file line numberDiff line numberDiff line change
@@ -272,13 +272,8 @@
272272
</ItemGroup>
273273
<ItemGroup>
274274
<None Include="includes\wascore\constants.dat" />
275-
<None Include="packages.config" />
276275
</ItemGroup>
277276
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
278277
<ImportGroup Label="ExtensionTargets">
279278
</ImportGroup>
280-
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
281-
<PropertyGroup>
282-
</PropertyGroup>
283-
</Target>
284279
</Project>

Microsoft.WindowsAzure.Storage/Microsoft.WindowsAzure.Storage.v141.vcxproj.filters

-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,6 @@
300300
</ResourceCompile>
301301
</ItemGroup>
302302
<ItemGroup>
303-
<None Include="packages.config" />
304303
<None Include="includes\wascore\constants.dat">
305304
<Filter>Header Files</Filter>
306305
</None>

Microsoft.WindowsAzure.Storage/samples/BlobsGettingStarted/Application.cpp Microsoft.WindowsAzure.Storage/samples/BlobsGettingStarted.cpp

+5-16
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// -----------------------------------------------------------------------------------------
2-
// <copyright file="Application.cpp" company="Microsoft">
2+
// <copyright file="BlobsGettingStarted.cpp" company="Microsoft">
33
// Copyright 2013 Microsoft Corporation
44
//
55
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,21 +15,17 @@
1515
// </copyright>
1616
// -----------------------------------------------------------------------------------------
1717

18-
#include "stdafx.h"
1918
#include "samples_common.h"
2019

2120
#include <was/storage_account.h>
2221
#include <was/blob.h>
2322
#include <cpprest/filestream.h>
2423
#include <cpprest/containerstream.h>
2524

26-
namespace azure { namespace storage { namespace samples {
2725

28-
utility::string_t to_string(const std::vector<uint8_t>& data)
29-
{
30-
return utility::string_t(data.cbegin(), data.cend());
31-
}
26+
namespace azure { namespace storage { namespace samples {
3227

28+
SAMPLE(BlobsGettingStarted, blobs_getting_started_sample)
3329
void blobs_getting_started_sample()
3430
{
3531
try
@@ -86,7 +82,7 @@ namespace azure { namespace storage { namespace samples {
8682
concurrency::streams::ostream output_stream(buffer);
8783
azure::storage::cloud_block_blob binary_blob = container.get_block_blob_reference(_XPLATSTR("my-blob-1"));
8884
binary_blob.download_to_stream(output_stream);
89-
ucout << _XPLATSTR("Stream: ") << to_string(buffer.collection()) << std::endl;
85+
ucout << _XPLATSTR("Stream: ") << utility::string_t(buffer.collection().begin(), buffer.collection().end()) << std::endl;
9086

9187
// Download a blob as text
9288
azure::storage::cloud_block_blob text_blob = container.get_block_blob_reference(_XPLATSTR("my-blob-2"));
@@ -167,11 +163,4 @@ namespace azure { namespace storage { namespace samples {
167163
}
168164
}
169165

170-
}}} // namespace azure::storage::samples
171-
172-
int main(int argc, const char *argv[])
173-
{
174-
azure::storage::samples::blobs_getting_started_sample();
175-
return 0;
176-
}
177-
166+
}}} // namespace azure::storage::samples

Microsoft.WindowsAzure.Storage/samples/BlobsGettingStarted/CMakeLists.txt

-14
This file was deleted.

Microsoft.WindowsAzure.Storage/samples/BlobsGettingStarted/DataFile.txt

-1
This file was deleted.

Microsoft.WindowsAzure.Storage/samples/BlobsGettingStarted/Microsoft.WindowsAzure.Storage.BlobsGettingStarted.v120.vcxproj

-127
This file was deleted.

Microsoft.WindowsAzure.Storage/samples/BlobsGettingStarted/Microsoft.WindowsAzure.Storage.BlobsGettingStarted.v120.vcxproj.filters

-36
This file was deleted.

0 commit comments

Comments
 (0)